安裝插件是出現 如下錯誤提示,
https fetch failed: Get https://golang.org/x/tools/cmd/gorename?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.
連接216.239.37.1超時,原本以為是因為牆內原因,翻牆后去telnet 216.239.37.1 443 發現也是不通的。
google上搜索一下,找到如下解決方法:
從golang的github上clone如下項目
git clone https://github.com/golang/tools.git tools
查看一下提交記錄,發現近期還在更新。
將clone下來的項目防止如下目錄,沒有自行創建
%GOPATH%\src\golang.org\x\tools
完成后再vscode中再次點擊 install all,在牆內網絡環境下,除linter外全部都可以成功安裝
最后一個再手工執行命令會自動安裝成功的,
go get -u -v github.com/alecthomas/gometalinter
參考資料:http://www.cnblogs.com/OctoptusLian/p/9325934.html