x/tools/gopls: crash with invalid end token.Pos for analyzers with related information #56270
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
This crash is not yet released, but exists in [email protected]. Possibly related to some of the recent cleanup of position representation, we get the following panic when staticcheck is enabled. Repro: enable "staticcheck" and open x/tools/gopls/internal/lsp/source:
Note that this is almost certainly not related to staticcheck itself. At first glance, my guess is that the distinguishing feature is the presence of related information.
Thanks @muirdm for the report (via slack).
CC @adonovan
The text was updated successfully, but these errors were encountered: