You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What did you do?
1. Followed the instructions at https://github.com/bazelbuild/rules_go/wiki/Editor-setup to setup protobuf support for Neovim using `gopls`. ([init.lua](https://github.com/bazelbuild/rules_go/wiki/Editor-setup) starting from kickstart.nvim)
2. Opened a project file and tried to use Go to Definition.
### What did you see happen?
Received the error:
Error when executing textDocument/definition : no package metadata for file file:///Users/david.yan/workspace/...
### What did you expect to see?
Should have navigated to the function declaration. This works when [these lines](https://gist.github.com/david-yan/daaa1ecb148c380e38ee8dd0761ac84f#file-init-lua-L621-L633) are removed.
### Editor and settings
The text was updated successfully, but these errors were encountered:
david-yan
added
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
labels
Oct 8, 2024
(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)
david-yan
changed the title
x/tools/gopls: GOPACKAGESDRIVER breaks go to definition
x/tools/gopls: GOPACKAGESDRIVER breaks telescope.builtin.lsp_definitions
Oct 8, 2024
gopls version
go env
Error when executing textDocument/definition : no package metadata for file file:///Users/david.yan/workspace/...
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382
The text was updated successfully, but these errors were encountered: