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!
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 use
M-x lsp-describe-sessionand exand the capabilities section."
M-x lsp-describe-sessionis in here: pastebin.com/4d30E6Gw I do not know how to interpret it...
lsp-modestarts the lsp server; perhaps it could determine the correct directory to start it in automatically. Or perhaps setting
lsp-auto-guess-rootwould work: emacs-lsp.github.io/lsp-mode/page/settings/mode/…