dongtieshang5429
dongtieshang5429
2018-04-24 03:09

无法在Visual Studio Code中安装Go扩展程序

  • it技术
  • 互联网问答
  • IT行业问题
  • 编程语言问答
  • 计算机技术

When I try to install the Go Extension in my Visual Studio Code, and I got these error messages as below. Am I missing something here?

 gocode
  gopkgs
  go-outline
  go-symbols
  guru
  gorename
  godef
  goreturns
  golint
  dlv

Installing github.com/nsf/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/rogpeppe/godef FAILED
Installing github.com/sqs/goreturns FAILED
Installing github.com/golang/lint/golint FAILED
Installing github.com/derekparker/delve/cmd/dlv FAILED

10 tools failed to install.

gocode:
Error: Command failed: /usr/local/go/bin/go get -u -v github.com/nsf/gocode
package github.com/nsf/gocode: cannot download, /home/bitnumbers/go is a GOROOT, not a GOPATH. For more details see: 'go help gopath'
package github.com/nsf/gocode: cannot download, /home/bitnumbers/go is a GOROOT, not a GOPATH. For more details see: 'go help gopath'

Please advice.

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答

为你推荐