x/tools/gopls: handle inconsistent vendoring error better #54986
Labels
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: v0.9.5
go version:1.19
gopls settings:
"gopls": { "ui.semanticTokens": true }
When inconsistent vendoring is detected, gopls fails to load workspace and shows an overwhelming notification:
(the above screenshot was taken after starting gopls)
Help users to pay attention to the go.mod diagnostic that already offers a quick-fix.
(feeling adventurous :-P) Investigate if we can get rid of this error - what if gopls falls back to load workspace as if there was no vendor directory while reporting the inconsistent vendoring issue in
go.mod
? If the fix for cmd/go: return best-effort results despite inconsistent vendoring #39164 helps, should we prioritize it?The text was updated successfully, but these errors were encountered: