1200字范文,内容丰富有趣,写作的好帮手!
1200字范文 > VSCode 插件安装失败 解决方法

VSCode 插件安装失败 解决方法

时间:2022-12-08 03:56:33

相关推荐

VSCode 插件安装失败 解决方法

vscode, 插件安装失败,解决方法

Installing 8 tools at D:\pragrams\go\bingocodegopkgsgo-outlinego-symbolsdlvgodefgoreturnsgolintInstalling /mdempsky/gocode FAILEDInstalling /uudashr/gopkgs/cmd/gopkgs FAILEDInstalling /ramya-rao-a/go-outline FAILEDInstalling /acroca/go-symbols FAILEDInstalling /derekparker/delve/cmd/dlv FAILEDInstalling /rogpeppe/godef FAILEDInstalling /sqs/goreturns FAILEDInstalling /x/lint/golint FAILED8 tools failed to install.gocode:Error: Command failed: D:\install\go\bin\go.exe get -u -v /mdempsky/gocodego: missing Git command. See /s/gogetcmdpackage /mdempsky/gocode: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /mdempsky/gocode: exec: "git": executable file not found in %PATH%gopkgs:Error: Command failed: D:\install\go\bin\go.exe get -u -v /uudashr/gopkgs/cmd/gopkgsgo: missing Git command. See /s/gogetcmdpackage /uudashr/gopkgs/cmd/gopkgs: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /uudashr/gopkgs/cmd/gopkgs: exec: "git": executable file not found in %PATH%go-outline:Error: Command failed: D:\install\go\bin\go.exe get -u -v /ramya-rao-a/go-outlinego: missing Git command. See /s/gogetcmdpackage /ramya-rao-a/go-outline: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /ramya-rao-a/go-outline: exec: "git": executable file not found in %PATH%go-symbols:Error: Command failed: D:\install\go\bin\go.exe get -u -v /acroca/go-symbolsgo: missing Git command. See /s/gogetcmdpackage /acroca/go-symbols: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /acroca/go-symbols: exec: "git": executable file not found in %PATH%dlv:Error: Command failed: D:\install\go\bin\go.exe get -u -v /derekparker/delve/cmd/dlvgo: missing Git command. See /s/gogetcmdpackage /derekparker/delve/cmd/dlv: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /derekparker/delve/cmd/dlv: exec: "git": executable file not found in %PATH%godef:Error: Command failed: D:\install\go\bin\go.exe get -u -v /rogpeppe/godefgo: missing Git command. See /s/gogetcmdpackage /rogpeppe/godef: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /rogpeppe/godef: exec: "git": executable file not found in %PATH%goreturns:Error: Command failed: D:\install\go\bin\go.exe get -u -v /sqs/goreturnsgo: missing Git command. See /s/gogetcmdpackage /sqs/goreturns: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /sqs/goreturns: exec: "git": executable file not found in %PATH%golint:Error: Command failed: D:\install\go\bin\go.exe get -u -v /x/lint/golintgo: missing Git command. See /s/gogetcmdpackage /x/lint/golint: exec: "git": executable file not found in %PATH%go: missing Git command. See /s/gogetcmdpackage /x/lint/golint: exec: "git": executable file not found in %PATH%

Visual Studio Code安装go插件报错原因分析

在安装go插件时,会自动更新很多依赖库文件,都是从Github更新下来,但是因为Github的文件中,多有应用go官网中的文件,导致,因为网络缘故,不能直接下载,导致安装失败。

Visual Studio Code安装go插件报错解决方案

本文章使用git软件的Git Bash Here 命令行窗口进行(要求使用,否则git clone时无法下载插件),进入安装go时创建的GOPATH目录,这个目录一般不是安装目录,如不知道请查看“此电脑->属性->高级系统设置->高级->环境变量->系统变量”中的GOPATH目录,比如我的是D:\pragrams\go,可以使用如下命令进入该目录下的src目录

cd GOPATH/srcGOPATH是go的编译需要的环境,在Mac或Windows的控制台,输入 go env 获取GOPATH路径

创建插件目录及下载插件

下面是在github上去把插件项目copy下来,用的git命令,也可以使用go的命令去获取cd $GOPATH/srcmkdir cd $GOPATH/src/mkdir acroca cweill derekparker go-delve josharian karrick mdempsky pkg ramya-rao-a rogpeppe sqs uudashrcd $GOPATH/src//acrocagit clone /acroca/go-symbols.gitcd $GOPATH/src//cweillgit clone /cweill/gotests.gitcd $GOPATH/src//derekparkergit clone /derekparker/delve.gitcd $GOPATH/src//go-delvegit clone /go-delve\delve.gitcd $GOPATH/src//joshariangit clone /josharian/impl.gitcd $GOPATH/src//karrickgit clone /karrick/godirwalk.gitcd $GOPATH/src//mdempskygit clone /mdempsky/gocode.gitcd $GOPATH/src//pkggit clone /pkg/errors.gitcd $GOPATH/src//ramya-rao-agit clone /ramya-rao-a/go-outline.gitcd $GOPATH/src//rogpeppegit clone /rogpeppe/godef.gitcd $GOPATH/src//sqsgit clone /sqs/goreturns.gitcd $GOPATH/src//uudashrgit clone /uudashr/gopkgs.git创建插件目录及下载插件cd $GOPATH/srcmkdir -p /xcd /xgit clone /golang/tools.gitgit clone /golang/lint.git

手动安装插件

cd $GOPATH/srcgo install /mdempsky/gocodego install /uudashr/gopkgs/cmd/gopkgsgo install /ramya-rao-a/go-outlinego install /acroca/go-symbolsgo install /rogpeppe/godefgo install /sqs/goreturnsgo install /derekparker/delve/cmd/dlvgo install /cweill/gotestsgo install /josharian/implgo install /x/tools/cmd/gurugo install /x/tools/cmd/gorenamego install /x/lint/golint

这篇文章借用了/dmt742055597/article/details/85865186

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。