Open l2m2 opened 4 years ago
这才是正确解决方法,网上一堆帖子都不对
赞赞赞,解决了
太棒了,成功了!!!网上其他的全是错的!!!(特意登账号来感谢!!!)
太棒了!!终于解决了
感谢,可以的
感谢!!
感谢,补充一下,如果windows上按照这个命令执行以后还是不行,在环境变量(个人和系统)中加上 GOPROXY=https://goproxy.io,direct
我的按照博主的配置是不行的(windows10 笔记本) 但是按照博主的参考的这个链接给的https://goproxy.io/zh/ 给的这个设置 go env -w GOPROXY=https://proxy.golang.com.cn,direct 是可以的
关键一步 重启vscode 解决问题了感谢
博主把这发到知乎上吧,我们给你点赞
感谢感谢
感谢,已解决!
很nice windows下也能fix掉这个问题
thank you ,remember restart vscode.
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.
赞,秒解决
太感谢了
https://l2m2.top/2020/05/26/2020-05-26-fix-golang-tools-failed-on-vscode/