解決vscode安裝golang外掛(windows)問題
本人選擇安裝的是golang版本如下:
C:\WINDOWS\system32>go version
go version go1.15.3 windows/amd64
在配置完vs的基本設定後,使用自帶地址安裝golang外掛安裝失敗。因為國內網路原因,如果電腦已經“科學上網”的同學,可以不用看了。
下面進行解決:
1、開啟windows的powershell,輸入以下程式碼:
PS C:\Users\wutongyu> $env:GO111MODULE="ON"
PS C:\Users\wutongyu> $env:GOPROXY="https://goproxy.io"
2、可以在vscode中安裝了
Tools environment: GOPATH=/Users/honglei/dev/go
Installing 17 tools at /Users/honglei/dev/go/bin in module mode.
gocode
gopkgs
go-outline
go-symbols
guru
gorename
gotests
gomodifytags
impl
fillstruct
goplay
godoctor
dlv
gocode-gomod
godef
goreturns
golint
Installing github.com/mdempsky/gocode (/Users/honglei/dev/go/bin/gocode) SUCCEEDED
Installing github.com/uudashr/gopkgs/v2/cmd/gopkgs (/Users/honglei/dev/go/bin/gopkgs) SUCCEEDED
Installing github.com/ramya-rao-a/go-outline (/Users/honglei/dev/go/bin/go-outline) SUCCEEDED
Installing github.com/acroca/go-symbols (/Users/honglei/dev/go/bin/go-symbols) SUCCEEDED
Installing golang.org/x/tools/cmd/guru (/Users/honglei/dev/go/bin/guru) SUCCEEDED
Installing golang.org/x/tools/cmd/gorename (/Users/honglei/dev/go/bin/gorename) SUCCEEDED
Installing github.com/cweill/gotests/... (/Users/honglei/dev/go/bin/gotests) SUCCEEDED
Installing github.com/fatih/gomodifytags (/Users/honglei/dev/go/bin/gomodifytags) SUCCEEDED
Installing github.com/josharian/impl (/Users/honglei/dev/go/bin/impl) SUCCEEDED
Installing github.com/davidrjenni/reftools/cmd/fillstruct (/Users/honglei/dev/go/bin/fillstruct) SUCCEEDED
Installing github.com/haya14busa/goplay/cmd/goplay (/Users/honglei/dev/go/bin/goplay) SUCCEEDED
Installing github.com/godoctor/godoctor (/Users/honglei/dev/go/bin/godoctor) SUCCEEDED
Installing github.com/go-delve/delve/cmd/dlv (/Users/honglei/dev/go/bin/dlv) SUCCEEDED
Installing github.com/stamblerre/gocode (/Users/honglei/dev/go/bin/gocode-gomod) SUCCEEDED
Installing github.com/rogpeppe/godef (/Users/honglei/dev/go/bin/godef) SUCCEEDED
Installing github.com/sqs/goreturns (/Users/honglei/dev/go/bin/goreturns) SUCCEEDED
Installing golang.org/x/lint/golint (/Users/honglei/dev/go/bin/golint) SUCCEEDED
All tools successfully installed. You are ready to Go :).
好了,可以愉快的寫程式碼了!
相關文章
- 教你一招完美解決vscode安裝go外掛失敗問題 dlv: failed to install dlvVSCodeGoAI
- VScode一鍵安裝外掛VSCode
- YouCode:更快地解決程式設計問題的vscode外掛程式設計VSCode
- Chrome安裝sci-hub外掛遇到的問題解決方法Chrome
- 解決VScode下載外掛十分緩慢的問題VSCode
- 解決在ubuntu 上安裝 the Cisco AnyConnect client(vpn外掛)的問題Ubuntuclient
- windows 安裝 MongoDB 卡主問題解決WindowsMongoDB
- 解決vscode安裝後無法啟動的問題VSCode
- VSCode安裝離線下載外掛VSCode
- Windows下ElasticSearch安裝中的問題解決WindowsElasticsearch
- python 安裝外掛太慢解決方法Python
- [外掛擴充套件] 已安裝外掛板塊問題套件
- VSCode修改外掛的安裝啟動位置VSCode
- 解決Nessus外掛更新失敗問題
- 解決 Swiper 外掛autoHeight問題 建議
- VScode外掛 Rainbow安裝(程式碼彩虹屁神器)VSCodeAI
- Windows 安裝 MySQL 5.7.20 教程(及常見問題解決)WindowsMySql
- windows平臺,eclipse安裝maven外掛WindowsEclipseMaven
- macbook 下安裝Goglang 以及安裝svn外掛所遇到的問題MacGo
- wordpress 外掛 (主題)線上安裝失敗 解決辦法探索
- 一鍵安裝團隊推薦的 vscode 外掛VSCode
- redis安裝及問題解決Redis
- gulp外掛解決瀏覽器快取問題瀏覽器快取
- Intellij IDEA如何設定中文版?安裝中文漢化包外掛?失敗問題解決!IntelliJIdea
- Emgu.CV.Runtime.Windows nuget 安裝失敗問題解決方案Windows
- 如何解決windows無法安裝ubuntu問題WindowsUbuntu
- VScode外掛VSCode
- nvm安裝後vscode不識別node、npm等問題的解決辦法VSCodeNPM
- IPython的安裝及問題解決Python
- django安裝xadmin及問題解決Django
- vscode安裝教程(windows) 安裝vscode要不要新增到pathVSCodeWindows
- 2019年,前端工程師需要安裝的15個VSCode 外掛前端工程師VSCode
- 解決Chrome外掛安裝時報錯:“Manifest file is missing or unreadable“Chrome
- jira-dev-tool外掛安裝失敗的解決方法dev
- VSCode 中 Markdown Preview Enhanced 外掛利用 Chrome (Puppeteer) 匯出 PDF 檔案使用說明與問題解決VSCodeViewChrome
- vscode常用外掛VSCode
- vscode外掛分享VSCode
- vscode外掛整理VSCode