x/tools/gopls: using go.work diagnostics not updated after go.mod change #51732
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 env
What did you do?
Wrote code with type parameters, but the go directive had a go version < 1.18
main.go:
go.mod:
go.work:
I got a diagnostic error on
[T int]
. From the terminal I rango mod edit -go=1.18
.There were no updated diagnostics sent.
What did you expect to see?
The diagnostic on
[T int]
to disappear.What did you see instead?
The diagnostic remained and no diagnostics were pushed by gopls.
Editor and settings
Logs
gopls trace:
The text was updated successfully, but these errors were encountered: