x/tools/gopls: need better error message than "expected operand, found 'ILLEGAL'" #61450
Labels
FeatureRequest
gopls/parsing
Issues related to parsing / poor parser recovery.
gopls
Issues related to the Go language server, gopls.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
go version: go1.20rc3
gopls version: v0.12.4
what did I do
I copy&pasted some code from google doc, and quotation marks were U+201C and U+201D.
gopls reported this error, but without sufficient details.
go command on the other hand reports helpful details:
It would be nice if we can surface more details when encountering this type of parse errors.
The text was updated successfully, but these errors were encountered: