赞
踩
VScode安装go插件有个bug,即使上网姿势科学也无法下载,安装插件会报错如下
- Installing github.com/golang/lint/golint FAILED
-
- Installing github.com/cweill/gotests/... FAILED
- Installing github.com/derekparker/delve/cmd/dlv SUCCEEDED
- 8 tools failed to install.
- go-outline:
- Error: Command failed: D:Gobingo.exe get -u -v github.com/ramya-rao-a/go-outline
- github.com/ramya-rao-a/go-outline (download)
- Fetching https://golang.org/x/tools/go/buildutil?go-get=1
- https fetch failed: Get https://golang.org/x/tools/go/buildutil?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
输入下面三条命令
- mkdir -p $env:GOPATH/src/golang.org/x/
-
- cd $env:GOPATH/src/golang.org/x/
-
- git clone https://github.com/golang/tools.git
在powershell里敲完再点安装就能成功。
这是一个Bug,不是网络问题。即使fq也没用啊。
网上的教程都说是网的问题,其实外国小伙伴们也遇到这样的问题了呢。
可以参考:
Unable to install go tools · Issue #2142 · Microsoft/vscode-gogithub.comCopyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。