Troubleshooting Golang plugin dependencies in Vscode installation failure
After installing the ms-vscode.go
plugin in Vscode, the support for the go language can be turned on, and ms-vscode.go
plugins need to rely on some tools to prompt after installation
Installing github.com/nsf/gocode SUCCEEDEDInstalling github.com/uudashr/gopkgs/cmd/gopkgs SUCCEEDEDInstalling github.com/ramya-rao-a/go-outline FAILEDInstalling github.com/acroca/go-symbols FAILEDInstalling golang.org/x/tools/cmd/guru FAILEDInstalling golang.org/x/tools/cmd/gorename FAILEDInstalling github.com/fatih/gomodifytags SUCCEEDEDInstalling github.com/haya14busa/goplay/cmd/goplay SUCCEEDEDInstalling github.com/josharian/impl FAILEDInstalling github.com/rogpeppe/godef SUCCEEDEDInstalling sourcegraph.com/sqs/goreturns FAILEDInstalling golang.org/x/lint/golint FAILEDInstalling github.com/cweill/gotests/... FAILEDInstalling github.com/derekparker/delve/cmd/dlv SUCCEEDED 8 tools failed to install.
Due to network reasons, some dependent tools do not install properly and need to be installed manually.
The following are the steps for a manually installed tool:
%GOPATH%\src\
under directory, create a pathgolang.org\x
Go to %GOPATH%\src\golang.org\x
, download the source code that needs the toolgit clone https://github.com/golang/tools.git tools
When clone is complete, a tools folder is generated so that the required source code for the tool is ready.
Go to the %GOPATH%
next, execute
go install github.com/ramya-rao-a/go-outline go install github.com/acroca/go-symbols go install golang.org/x/tools/cmd/guru go install golang.org/x/tools/cmd/gorename go install github.com/rogpeppe/godef go install github.com/sqs/goreturns go install github.com/cweill/gotests/gotests
Separate processing Golint,golint source code is located https://github.com/golang/lint
, enter %GOPATH%\src\golang.org\x
after the implementation git clone https://github.com/golang/lint
of download Golint required source code
Go to the %GOPATH%
next, executego install github.com/golang/lint/golint
In this way, Vscode's Golang plug-in relies on the tools installed to complete.