vscode安装go插件失效,解决办法。

VScode安装go插件失败,即使翻墙也没用,安装插件会报错如下

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:\Go\bin\go.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里敲完再点安装就能成功。

这个问题翻墙也解决不了问题。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。