Closed hovinen closed 9 months ago
cc: @hyangah
Snap users need the following settings https://github.com/golang/vscode-go/issues/166#issuecomment-1516874141
"go.alternateTools": {
"go": "/snap/go/current/bin/go"
}
to workaround the snap issue https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753
Yep, that worked. Thank you!
What version of Go, VS Code & VS Code Go extension are you using?
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 thego.
or["go"]
orgopls
prefixes.None found
Describe the bug
The Go plugin reports the error:
I can run the indicated command just fine in the terminal within VSCode:
The empty
GOBIN
is strange, but the plugin obviously able to find the binary.None of the language features are working at all. All Go-related commands result in a modal indicating that the command was not found. No other error messages appear.
This is on a fresh install on Ubuntu 23.04 using Snaps for both VSCode and Go. I have tried uninstalling and reinstalling all relevant components to no effect.
Steps to reproduce the behavior: