x/tools/gopls: improve presentation of package loading failure caused by cgo errors #43307
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: v0.6.1
I encountered a repo that uses
cgo
and requires tools (e.g.pkg-config
, ...) and correct configuration to buildcgo
.Loading packages took a while and eventually failed because of my incomplete configuration. The
PROBLEMS
(diagnostics) section is flooded with hundreds of errors related to cgo typesI could find the reasons from the
gopls (server)
trace channel of vscode. But it would be better to expose these error in the diagnostics page or with other means. Also, consider suppressing all the cgo-related type errors when the root cause is obvious. Finding the root cause out of hundreds of type errors seems impossible.The text was updated successfully, but these errors were encountered: