x/tools/gopls: v0.11.0 fails to find callers/references when compilation error in anciliary directory in a workspace #57727
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
gopls version
go env
What did you do?
I updated from v0.10.1 to v0.11.0. Executing commands to get References or Callers will fail with a workspace error. Some of the our directories in
src
fail to build as they have an odd build setup that requires some external script to succeed.GoReferrers
orGoCallers
it doesn't seem to complain about the workspace errors, even though they have not really been fixed.GoReferrers
orGoCallers
it still returns the same workspace loading failure.The compilation failure is on a completely unrelated directory from what I can tell with some basic code poking.
What did you expect to see?
directories which are compiling to still be referable to/used by gopls.
What did you see instead?
gopls seems to ignore any workspace with compilation error in any of its directories, when it came to those calls. Finding Definitions seems to work still though.
Editor and settings
vim-go
usinggopls
for pretty much everything. Using ago.work
file also.I can include logs or the LSP introspection if needed...but I am wondering if this is a bug or if this the correct expectation and
v0.10.1
behavior was incidental. It makes gopls very difficult to use for larger projects, especially whenbazel
is involved, if this is the expected behavior.The text was updated successfully, but these errors were encountered: