-
Notifications
You must be signed in to change notification settings - Fork 762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clarify unsupported Go versions in README and error messages #3412
Comments
The Go project only supports the last two major releases, currently 1.22 and 1.21: https://go.dev/doc/devel/release#policy gopls@latest requires at least Go 1.19: https://cs.opensource.google/go/x/tools/+/master:gopls/go.mod;l=3 |
Yes, please reinstall with a supported version of Go. Soon, gopls will require at least Go 1.21 (+forward compatibility) to build: golang/go#65917. I believe the extension should not have tried to install gopls@latest, since it should be knowledgeable of the last supported version. CC @hyangah in case there is a VS Code bug here. |
According to https://github.com/golang/tools/tree/master/gopls#supported-go-versions VS Code still claims to support tools installation with go1.18, but that's incorrect.
|
Thanks @hyangah. Transferring to the VS Code issue tracker. |
Duplicate of #3409 |
Change https://go.dev/cl/616675 mentions this issue: |
Based on the clarified version support policy: - Add github.com/golang/vscode-go/wiki/compatibility to have the version compatibility matrix. - Drop go1.20 from GH action workflows. - Let extension/tools/installtools require go1.21+. For #3411 For #3412 Change-Id: I10ffafa3234e691e9e27f84385aa68efa7db733f Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/616675 kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com> Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com>
gopls version
n/a
go env
What did you do?
Due to an onboarding on a project I fresh installed go@1.18 in my environment using
asdf
and tried to setup the VSCode's extension to start coding.What did you see happen?
Error when installing
gopls@latest
.What did you expect to see?
All the tools installed properly.
Editor and settings
No response
Logs
The text was updated successfully, but these errors were encountered: