Troubleshooting Golang plugin dependencies in Vscode installation failure

Source: Internet
Author: User

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:

    1. %GOPATH%\src\under directory, create a pathgolang.org\x

    2. Go to %GOPATH%\src\golang.org\x , download the source code that needs the toolgit clone https://github.com/golang/tools.git tools

    3. When clone is complete, a tools folder is generated so that the required source code for the tool is ready.

    4. 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
    5. 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

    6. 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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.