x/tools/gopls: diagnostics are produced for packages beginning with underscore #39563
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
Please answer these questions before submitting your issue. Thanks!
What did you do?
/tmp/yaegi
to vscode workspace._test/a1.go
, which produces 2709 diagnostics in theView > Problems
window._test/a1.go
and we still have 2709 diagnostics.What did you expect to see?
The
_test
package should be ignored by gopls, as it's also ignored bygo build ./...
.What did you see instead?
Too many diagnostics for a package I don't care to see diagnostics on. The only way to remove the diagnostics seems to be to restart vscode.
While unwanted diagnostics might not seem like a big issue on vscode, where the user usually don't look at the Problems window, it's a larger issue for editors that don't support highlighting problems within the file buffer (e.g. acme-lsp). In those editors, the Problems window is the only way to see the diagnostics.
Build info
Go info
The text was updated successfully, but these errors were encountered: