-
Notifications
You must be signed in to change notification settings - Fork 836
Open
Labels
Documentationupstream-vscodeIssues that are by problems in VS Code itself.Issues that are by problems in VS Code itself.
Milestone
Description
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
goenv:
goenv version
1.15.4 (set by /home/robertc/.goenv/version)
go version:
go version go1.15.4 linux/amd64
gopls -v version
Build info
----------
golang.org/x/tools/gopls v0.7.3
golang.org/x/tools/[email protected] h1:Lru57ht8vtDMouRskFC085VAjBAZRAISd/lwvwOOV0Q=
github.com/BurntSushi/[email protected] h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
github.com/google/[email protected] h1:BKbKCqvP6I+rmFHt06ZmyQtvB8xAkWdhFyr0ZUNZcxQ=
github.com/sergi/[email protected] h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
golang.org/x/[email protected] h1:Gz96sIWK3OalVv/I/qNygP42zyoKp3xptRVCWRFEBvo=
golang.org/x/[email protected] h1:5KslGYwFpkhGh+Q16bwMP3cOontH8FOep7tGV86Y7SQ=
golang.org/x/[email protected] h1:WUoyKPm6nCo1BnNUvPGnFG3T5DUVem42yDJZZ4CNxMA=
golang.org/x/[email protected] h1:aRYxNxv6iGQlyVaZmk6ZgYEDa+Jg18DxebPSrd6bg1M=
golang.org/x/[email protected] h1:hk7xRoeg0CG1nRLsd5BZLDUgVpA9bnKylGk1p2/BPH0=
golang.org/x/[email protected] h1:go1bK/D/BFZV2I8cIQd1NKEZ+0owSTG1fDTci4IqFcE=
honnef.co/go/[email protected] h1:ws8AfbgTX3oIczLPNPCu5166oBg9ST2vNs0rcht+mDE=
mvdan.cc/[email protected] h1:bi/1aS/5W00E2ny5q65w9SnKpWEF/UIOqDYBILpo9rA=
mvdan.cc/xurls/[email protected] h1:59Olnbt67UKpxF1EwVBopJvkSUBmgtb468E4GVWIZ1I=
code -v
f4af3cbf5a99787542e2a30fe1fd37cd644cc31f
x64
extension: 0.29.0
Locate configured go tools:
Checking configured tools....
GOBIN: undefined
toolsGopath:
gopath: undefined
GOROOT:
PATH: /home/robertc/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/bin:/home/robertc/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
unable to locate "go" binary in GOROOT () or PATH (/home/robertc/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/bin:/home/robertc/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin)
Note that the PATH is wrong: this is what it is in the terminal:
/home/robertc/.goenv/versions/1.15.4/bin:/home/robertc/bin/google-cloud-sdk/bin:/home/robertc/bin/apache-maven-3.6.3/bin:/home/robertc/bin:/home/robertc/.cargo/bin:/home/robertc/.nvm/versions/node/v13.13.0/bin:/home/robertc/.goenv/shims:/home/robertc/.goenv/bin:/home/robertc/.pyenv/shims:/home/robertc/.pyenv/bin:/home/robertc/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/bin:/home/robertc/.vscode-server/bin/f4af3cbf5a99787542e2a30fe1fd37cd644cc31f/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/robertc/go/1.15.4/bin
Share the Go related settings you have added/edited
go settings
"go.coverOnSave": true,
"go.formatTool": "goimports",
"go.lintTool": "golangci-lint",
"editor.formatOnSave": true,
"go.testOnSave": true,
Describe the bug
I am encountering the symptoms of closed bug #971 That bug has no long term solution implemented, just a hardcoded path lookup for an alternative concrete location.
If the bug is really fixed, perhaps remove the 'temporary' reference to the bug from the error message. If it isn't, perhaps reopen the bug (and close this as a dupe),... or perhaps turn this into the current iteration of this bug.
Metadata
Metadata
Assignees
Labels
Documentationupstream-vscodeIssues that are by problems in VS Code itself.Issues that are by problems in VS Code itself.