我是靠谱客的博主 和谐冬日,这篇文章主要介绍VScode 1.13 gocode提示dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the co...,现在分享给大家,希望可以做个参考。
在将VScode升级至 1.13后让升级gocode,在升级时报出如下错误
D:go_worksrc>go get -u -v github.com/mdempsky/gocode github.com/mdempsky/gocode (download) Fetching https://golang.org/x/tools/go/gcexportdata?go-get=1 https fetch failed: Get https://golang.org/x/tools/go/gcexportdata?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. package golang.org/x/tools/go/gcexportdata: unrecognized import path "golang.org/x/tools/go/gcexportdata" (https fetch: Get https://golang.org/x/tools/go/gcexportdata?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.)
失败原因,发现是从github/golang中下载的tools不包含gocode
解决方法:
根据提示图片信息进行查找,(github/golang下载详见:http://lc161616.cnblogs.com/p/10132518.html)。提示图片如下:
根据vscode提示去github.com/mdempsky/gocode clone下来代码。然后放置到提示图片的路径下:为了保险我又放置在%GOPATH%srcgolang.orgxtools下一份。
最后手动执行go get,安装成功
D:go_worksrc>go get -u -v github.com/mdempsky/gocode github.com/mdempsky/gocode (download) Fetching https://golang.org/x/tools/go/gcexportdata?go-get=1 https fetch failed: Get https://golang.org/x/tools/go/gcexportdata?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. golang.org/x/tools (download) Fetching https://golang.org/x/tools/go/internal/gcimporter?go-get=1 https fetch failed: Get https://golang.org/x/tools/go/internal/gcimporter?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. github.com/mdempsky/gocode/internal/lookdot github.com/mdempsky/gocode/internal/cache github.com/mdempsky/gocode/internal/suggest github.com/mdempsky/gocode/internal/gbimporter github.com/mdempsky/gocode
转载于:https://www.cnblogs.com/LC161616/p/10133036.html
最后
以上就是和谐冬日最近收集整理的关于VScode 1.13 gocode提示dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the co...的全部内容,更多相关VScode内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复