x/tools/gopls: fails to load std and cmd workspace packages #46901
Labels
FrozenDueToAge
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Gopls loads std and cmd with the go/packages queries "std/..." and "cmd/...", respectively, resulting in no workspace packages being loaded. As a result, the only packages considered part of the workspace are loaded via open files.
This seems to have been the case for a while, but may have become more noticeable with recent memory optimizations.
This is straightforward to fix, though it makes working in cmd and std a lot more resource intensive: 2.8G vs <1G for me, and find references on testing.T takes a good 5-10s. I'd still prefer to fix it. If anyone wants the old behavior they can opt in to the degraded memory mode.
CC @stamblerre @mdempsky
The text was updated successfully, but these errors were encountered: