Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the failure of VSCode Go extension installation

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the solution to the failure of VSCode Go extension installation. I hope you will gain something after reading this article. Let's discuss it together.

VSCode Go extension installation failed

The installation of the VSCode Go extension failed, because the installation plug-in needed to rely on the foreign website "https://golang.org/x/tools"", but could not be accessed at home, so the installation failed. The solution: use the mirror library officially established by Go on Github, download the plug-in rack to the local installation.

Cloning method

/ / enter the src directory of GOPATH set by VS Code cd / D D:\ GoProjects\ src / / create the golang.org directory, and if it already exists, ignore the directive mkdir golang.org / / enter the golang.org directory cd golang.org / / create the x directory If it already exists, ignore the instruction mkdir x / / enter the x directory cd x / / get the tools source code git clone https://github.com/golang/tools / / get the lint source code git clone https://github.com/golang/lint

Install the plug-in

Installing github.com/mdempsky/gocode SUCCEEDEDInstalling github.com/ramya-rao-a/go-outline SUCCEEDEDInstalling github.com/acroca/go-symbols SUCCEEDEDInstalling golang.org/x/tools/cmd/guru SUCCEEDEDInstalling golang.org/x/tools/cmd/gorename SUCCEEDEDInstalling github.com/stamblerre/gocode SUCCEEDEDInstalling github.com/sqs/goreturns SUCCEEDEDInstalling golang.org/x/lint/golint SUCCEEDED All tools successfully installed. You're ready to Go:). After reading this article, I believe you have a certain understanding of "the solution to the failure of VSCode Go extension installation". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report