nsf/gocode

How to edit GOROOT in Gocode's build context

Closed this issue · 2 comments

I have already set a environment variable.

image

Goroot in $env & go env are both right.
But it has a incorrect value "C:\go" in gocode's build context.

My os is windows 10 1709 and version of golang is v1.9.3

nsf commented

Gocode passes GOROOT env var (and few others) from client to server on every autocompletion request. Make sure it's correctly set on the client and it should work.

@nsf
Thank you.
I modified go.gopath & go.goroot in vscode ,and it works fine now.