在Visual Studio代码中安装Golang设置工具时出错

时间:2019-07-06 15:41:39

标签: go visual-studio-code

我在Visual Studio代码中安装golang设置工具时遇到问题。

我还设置了GOPATH和GOROOT ==>

之类的路径

enter image description here

Installing github.com/mdempsky/gocode FAILED
Installing github.com/uudashr/gopkgs/cmd/gopkgs FAILED
Installing github.com/ramya-rao-a/go-outline FAILED
Installing github.com/acroca/go-symbols FAILED
Installing golang.org/x/tools/cmd/guru FAILED
Installing golang.org/x/tools/cmd/gorename FAILED
Installing github.com/go-delve/delve/cmd/dlv FAILED
Installing github.com/stamblerre/gocode FAILED
Installing github.com/rogpeppe/godef FAILED
Installing github.com/sqs/goreturns FAILED
Installing golang.org/x/lint/golint FAILED
Installing github.com/cweill/gotests/... FAILED
Installing github.com/fatih/gomodifytags FAILED
Installing github.com/josharian/impl FAILED
Installing github.com/davidrjenni/reftools/cmd/fillstruct FAILED
Installing github.com/haya14busa/goplay/cmd/goplay FAILED
Installing github.com/godoctor/godoctor FAILED

17 tools failed to install.

gocode:
Error: Command failed: C:\Go\bin\go.exe get -u -v github.com/mdempsky/gocode
go: GOPATH entry is relative; must be absolute path: "go.gopath".
For more details see: 'go help gopath'
go: GOPATH entry is relative; must be absolute path: "go.gopath".
For more details see: 'go help gopath'

0 个答案:

没有答案