l2m2 / l2m2.github.io

l2m2的技术博客 https://l2m2.top
3 stars 1 forks source link

解决VSCode安装Go tools失败的问题 | L2M2 #51

Open l2m2 opened 4 years ago

l2m2 commented 4 years ago

https://l2m2.top/2020/05/26/2020-05-26-fix-golang-tools-failed-on-vscode/

hjc19951212 commented 3 years ago

这才是正确解决方法,网上一堆帖子都不对

wowococo commented 3 years ago

赞赞赞,解决了

Jacobbishopxy commented 3 years ago

太棒了,成功了!!!网上其他的全是错的!!!(特意登账号来感谢!!!)

bbbiggest commented 3 years ago

太棒了!!终于解决了

coderZMR commented 2 years ago

感谢,可以的

Equationzhao commented 2 years ago

感谢!!

svenjia commented 2 years ago

感谢,补充一下,如果windows上按照这个命令执行以后还是不行,在环境变量(个人和系统)中加上 GOPROXY=https://goproxy.io,direct

wode-czw commented 2 years ago

我的按照博主的配置是不行的(windows10 笔记本) 但是按照博主的参考的这个链接给的https://goproxy.io/zh/ 给的这个设置 go env -w GOPROXY=https://proxy.golang.com.cn,direct 是可以的

ZhangDahe commented 2 years ago

关键一步 重启vscode 解决问题了感谢

zsytssk commented 2 years ago

博主把这发到知乎上吧,我们给你点赞

liushunshun commented 2 years ago

感谢感谢

darkway-s commented 1 year ago

感谢,已解决!

MollyBa commented 1 year ago

很nice windows下也能fix掉这个问题

thethirdfive commented 1 year ago

thank you ,remember restart vscode.

abbottTom commented 1 year ago

Tools environment: GOPATH=D:\go Installing 7 tools at D:\go\bin in module mode. gotests gomodifytags impl goplay dlv staticcheck gopls

Installing github.com/cweill/gotests/gotests@v1.6.0 (gotests) SUCCEEDED Installing github.com/fatih/gomodifytags@v1.16.0 (gomodifytags) SUCCEEDED Installing github.com/josharian/impl@v1.1.0 (impl) SUCCEEDED Installing github.com/haya14busa/goplay/cmd/goplay@v1.0.0 (goplay) SUCCEEDED Installing github.com/go-delve/delve/cmd/dlv@latest (dlv) SUCCEEDED Installing honnef.co/go/tools/cmd/staticcheck@latest (staticcheck) SUCCEEDED Installing golang.org/x/tools/gopls@latest (gopls) SUCCEEDED

All tools successfully installed. You are ready to Go. :) 都安装成功了还一直报错 The "gopls" command is not available. Run "go install -v golang.org/x/tools/gopls@latest" to install.

cuizhu12138 commented 9 months ago

赞,秒解决

pengfeifei6 commented 1 month ago

太感谢了