x/tools/gopls: suggest go.mod go version update if generics code is found #51086
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.
Milestone
gopls version
go version
go version go1.18beta2 darwin/amd64
What did you do?
copy/pasted generics code but forgot to update go.mod go version (and kept go1.17)
What did you expect to see?
Message indicating go.mod needs update.
What did you see instead?
Message that I need go1.18. That's true, but can be confusing for some users.
Quickfix that updates go.mod version string will be a big plus!
Logs
Gopls is correctly using go1.18beta2.
The text was updated successfully, but these errors were encountered: