Cannot find "go" binary installed by asdf-vm on WSL #1886
Labels
FrozenDueToAge
upstream-vscode
Issues that are by problems in VS Code itself.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
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
Run
Preferences: Open Settings (JSON)
command to open your settings.json file.Share all the settings with the
go.
or["go"]
orgopls
prefixes.Describe the bug
A clear and concise description of what the bug.
A clear and concise description of what you expected to happen.
After updating VSCode from 1.62.0 to 1.62.1, the Go extension always says when I run VSCode:
despite it didn't when the VSCode version was 1.62.0.
It happened on WSL environment on Windows 11. I installed go with asdf-vm, so that my GOROOT is set to
/home/(myname)/.asdf/installs/golang/1.17.3/go
and/home/takuto/.asdf/shims
exists in$PATH
(I checked on my WSL Ubuntu terminal withgo env
andecho $PATH
, but they're properly set). Maybe the Go extension tries to find "go" binary before WSL executes.bashrc
(since all the settings I mentioned is written in.bashrc
).It was absolutely caused by the VSCode update (I checked it by reinstalling VSCode 1.62.0 and ensured the Go extension works properly), but it's the Go extension problem. I don't know which repository to post this issue, so I post it here first.
Steps to reproduce the behavior:
Bash & Git
referring hereScreenshots or recordings
If applicable, add screenshots or recordings to help explain your problem.
The text was updated successfully, but these errors were encountered: