Solved the Golang plugin dependency installation failure issue in VS Code
Vscode installed in ms - vscode. Go after code> plugins can open support for the language, the
ms - vscode. Go code> plugins need to rely on some tools, prompt after the installation is complete
Installing github.com/nsf/gocode SUCCEEDED
Installing github.com/uudashr/gopkgs/cmd/gopkgs SUCCEEDED
Installing github.com/ramya-rao-a/go-outline FAILED
Installing github.com/acroca/go-symbols FAILED
Installing golang.org/x/tools/cmd/guru FAILED
Installing golang.org/x/tools/cmd/gorename FAILED
Installing github.com/fatih/gomodifytags SUCCEEDED
Installing github.com/haya14busa/goplay/cmd/goplay SUCCEEDED
Installing github.com/josharian/impl FAILED
Installing github.com/rogpeppe/godef SUCCEEDED
Installing sourcegraph.com/sqs/goreturns FAILED
Installing golang.org/x/lint/golint FAILED
Installing github.com/cweill/gotests/... FAILED
Installing github.com/derekparker/delve/cmd/dlv SUCCEEDED
8 tools failed to install.
Due to network problems, some dependent tools cannot be installed properly, so manual installation is required.
Here are the steps for manually installing the tool:
GOPATH
- in
% % \ SRC \ code> directory and establish a path \ x code> golang.org into GOPATH%\src\golang.org % \ x code>, download tools, source code git clone https://github.com/golang/tools.git tools code> after the completion of the clone, A Tools folder will be generated so that the source code for the tool is ready to execute under % goPath %
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 is located in the https://github.com/golang/lint code>, enter GOPATH%\src\golang.org % \ x code> after the execution of git clone https://github.com/golang/lint code> download golint GOPATH need source code to the % % code>, the execution of go install github.com/golang/lint/golint code> ol>
This completes the installation of the tools on which VS Code's Golang plug-in depends.