I'm using company-mode with lsp-mode as lsp client and gopls as lsp backend in order to lookup function and variable definitions in go projects.
On some repositories, when I want to lookup a definition (M-.
) I get an unexpected:
"Visit tags table (default TAGS):..."
...instead of jumping to the function definition.
How can I fix this? Thanks!
M-.
bound to?C-h k M-.
will tell you.M-x lsp-find-definition
, which in this case yields a similar error: "The connected server does not support method testDocument/definition. To find out what capabilities support your server useM-x lsp-describe-session
and exand the capabilities section."M-x lsp-describe-session
is in here: pastebin.com/4d30E6Gw I do not know how to interpret it...lsp-mode
starts the lsp server; perhaps it could determine the correct directory to start it in automatically. Or perhaps settinglsp-auto-guess-root
would work: emacs-lsp.github.io/lsp-mode/page/settings/mode/…