vscode启动,出现下面提示,点安装会失败。 

The "gopls" command is not available. Use "go get -v golang.org/x/tools/cmd/gopls" to install.

下面是手工解决方案:

github.com中对应golang.org/x/tools/的路径:

https://github.com/Go-zh/tools.git 

git clone ,如果慢,就直接下载ZIP吧。

然后解压到: $GOPATH/src/github.com/Go-zh/tools

gopls路径为:$GOPATH/src/github.com/Go-zh/tools/cmd/gopls

 

然后安装就行了:

cd $GOPATH/src
go install github.com/Go-zh/tools/cmd/gopls

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-24
  • 2022-12-23
  • 2022-01-29
  • 2021-11-25
  • 2022-12-23
  • 2021-08-09
猜你喜欢
  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2021-12-06
  • 2021-10-10
  • 2021-10-01
相关资源
相似解决方案