Vscode Install Go language development environment, go plugin problem solving

Source: Internet
Author: User
Tags install go

When installing the Go plugin, will automatically update a lot of dependent library files, are updated from GitHub, but because of GitHub files, there are many applications in the go official website files, resulting, because the network, can not be directly downloaded, resulting in installation failure, as follows:

  1. Installing Github.com/nsf/gocode succeeded
  2. Installing github.com/uudashr/gopkgs/cmd/gopkgs succeeded
  3. Installing github.com/ramya-rao-a/go-outline FAILED
  4. Installing github.com/acroca/go-symbols FAILED
  5. Installing Golang.org/x/tools/cmd/guru FAILED
  6. Installing Golang.org/x/tools/cmd/gorename FAILED
  7. Installing Github.com/fatih/gomodifytags succeeded
  8. Installing Github.com/haya14busa/goplay/cmd/goplay succeeded
  9. Installing Github.com/josharian/impl FAILED
  10. Installing Github.com/rogpeppe/godef succeeded
  11. Installing Sourcegraph.com/sqs/goreturns FAILED
  12. Installing Github.com/golang/lint/golint FAILED
  13. Installing github.com/cweill/gotests/... FAILED
  14. Installing GITHUB.COM/DEREKPARKER/DELVE/CMD/DLV succeeded
  15. 8 Tools failed to install.
These failed libraries, not downloaded down, but since the files on the go official online, led to failure. Here are the solutions,

1、在%GOPATH%\src\ 目录下,建立golang.org 文件夹,并再新建x文件夹。 目录为 "%GOPATH\src\golang.org\x\"
2、完成目录切换后,开始下载插件包:
git clone https://github.com/golang/tools.git tools
3, after the execution, there will be a more Tools folder.

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/josharian/impl

Go Install Github.com/rogpeppe/godef

Go Install Github.com/sqs/goreturns

Go Install Github.com/golang/lint/golint

Go Install github.com/cweill/gotests/gotests

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/josharian/impl

Go Install Github.com/rogpeppe/godef

Go Install Github.com/sqs/goreturns

Go Install Github.com/golang/lint/golint

Go Install github.com/cweill/gotests/gotests

By this method, you can install successfully.

Reference blog:

http://www.pythonsite.com/?p=429

http://blog.csdn.net/langzi7758521/article/details/51313521

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.