-
Notifications
You must be signed in to change notification settings - Fork 645
Default goroot/gopath ignored by vscode-go #873
Comments
Good point. Fix will be out in the next update. |
Wow! Thank you for this answer! One point, I don't tell you to define GOROOT or GOPATH, but just let them blank if go is located in C:\go, and there are not in the environment variables. |
well, I do need to set GOPATH and GOROOT somehwere because all the logic to find the binaries depend on it. See https://github.com/Microsoft/vscode-go/blob/master/src/goPath.ts Also the command, And since |
The previous fix depends on Right fix: 904b267 |
The latest update (0.6.56) to the Go extension has the fix to this issue. |
I currently have the same issue in Mac. |
@majimboo Please elaborate. Do you have issues with the goroot to gopath?
|
Have the same issue in Mac I didn't set any of when I run
|
Actually, it's |
And second, you need to define your GOROOT variable inside your shell, or set the
|
Hi.
Cannot find "go" binary. Update PATH or GOROOT appropriately
Set GOPATH environment variable and restart VS Code or set GOPATH in Workspace settings
It seems that this extension does not search for default
goroot
andgopath
in Windows. In fact, by default, thegoroot
is set toc:/go
and%userprofile%/go
and this extension should search automatically search for go inc:/go
without adding customgoroot
or add go to path. Moreover, it should consider thatgopath
is, by default, and if not overridden by local settings or environment variables, equal to%userprofile%/go
.C:\go\bin>go env
Thank you.
The text was updated successfully, but these errors were encountered: