x/tools/gopls: Some compiler errors diagnostics contain an protocol.Unnecessary tag in the event #51995
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.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
gopls version
go env
What did you do?
I use the vim editor with the coc.nvim plugin, and found that the language server reports some diagnostics for compiler errors with an
protocol.Unnecessary
tag. E.g. the following simple source file:Gives the following diagnostics which are sent by the server:
Because of the tag specified in the
tags
field, my editor regards it as an informational diagnostic rather than an error message.It looks like the above tag should not be included in such case.
https://github.com/golang/tools/blob/b105aac5705e64187ac8851a26636693404b0ec4/internal/lsp/cache/errors.go#L250-L252
The text was updated successfully, but these errors were encountered: