当前位置:   article > 正文

git命令没用_VScode 安装go插件失败,只要三条命令搞定

git命令没用_VScode 安装go插件失败,只要三条命令搞定

e249c10fe8a4bf570d8a80cfb2293665.png

VScode安装go插件有个bug,即使上网姿势科学也无法下载,安装插件会报错如下

  1. Installing github.com/golang/lint/golint FAILED
  2. Installing github.com/cweill/gotests/... FAILED
  3. Installing github.com/derekparker/delve/cmd/dlv SUCCEEDED
  4. 8 tools failed to install.
  5. go-outline:
  6. Error: Command failed: D:Gobingo.exe get -u -v github.com/ramya-rao-a/go-outline
  7. github.com/ramya-rao-a/go-outline (download)
  8. Fetching https://golang.org/x/tools/go/buildutil?go-get=1
  9. 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.

输入下面三条命令

  1. mkdir -p $env:GOPATH/src/golang.org/x/
  2. cd $env:GOPATH/src/golang.org/x/
  3. git clone https://github.com/golang/tools.git

在powershell里敲完再点安装就能成功。

这是一个Bug,不是网络问题。即使fq也没用啊。

网上的教程都说是网的问题,其实外国小伙伴们也遇到这样的问题了呢。

可以参考:

Unable to install go tools · Issue #2142 · Microsoft/vscode-go​github.com
f6374e260a399c07663f85eea0010e2c.png
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/177905?site
推荐阅读
相关标签
  

闽ICP备14008679号