x/tools/gopls: improve error message when user needs newer go version #61673
Labels
gopls/metadata
Issues related to metadata loading in gopls
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
go 1.21rc3
gopls v0.13.0
How to reproduce the issue
And start gopls from this directory.
go1.23 is not available so this error is expected. (Users who have
GOTOOLCHAIN=local
env would experience similar issues). But the error message that references a temporary go.mod file can be potentially confusing for users. Either rewrite the error message or at least, replace the temporary go.mod file with the original go.mod file in the message.And this diagnostic is attached to the "module" line. But for this specific error, I think the "go" line may be more suitable if feasible.
The text was updated successfully, but these errors were encountered: