You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IntelliSense seems to be using the incorrect version of Go. I get the following error:
I upgraded all my tools, and as you can see from the logs above, there is no mention of 1.22.5 anywhere.
Still, I get the following in my gopls log:
Note that the version of go installed in in the PATH (/opt/homebrew/bin) is 1.22.5, but as far as I understand (and as the output of go version seem to confirm), it should use the 1.22.7 toolchain if that is what is requested by go.work.
The text was updated successfully, but these errors were encountered:
Thanks for this issue. This sounds like a gopls bug, so I'll transfer to the next gopls milestone.
findleyr
changed the title
packages.Load error
x/tools/gopls: packages.Load failure with conflicting go.work and go.mod toolchain versions
Sep 26, 2024
gopherbot
added
Tools
This label describes issues relating to any tools in the x/tools repository.
gopls
Issues related to the Go language server, gopls.
labels
Sep 26, 2024
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Describe the bug
IntelliSense seems to be using the incorrect version of Go. I get the following error:
I upgraded all my tools, and as you can see from the logs above, there is no mention of 1.22.5 anywhere.
Still, I get the following in my gopls log:
Note that the version of go installed in in the PATH (/opt/homebrew/bin) is 1.22.5, but as far as I understand (and as the output of
go version
seem to confirm), it should use the 1.22.7 toolchain if that is what is requested by go.work.The text was updated successfully, but these errors were encountered: