skip to Main Content

Visual Studio Code – How to set the version of gopls to install with vscode Go extension?

I'm running go1.16, the latest gopls version is not compabtible with it. Confirmed it at https://github.com/golang/tools/blob/master/gopls/README.md. The installation fails with below error Installing golang.org/x/tools/gopls@latest FAILED { "code": 1, "killed": false, "signal": null, "cmd": "/usr/local/bin/go install -v golang.org/x/tools/gopls@latest", "stdout": "", "stderr":…

VIEW QUESTION

Visual Studio Code – VSCode: gopls: failed to install [read "https:/proxy.golang.org/@v/v0.1.0.zip": stream error: stream ID 9; NO_ERROR; received from peer]

While opening my Go project in VSCode or using the Go: install/update tools command I am getting the following error: 1 tools failed to install. gopls: failed to install gopls(golang.org/x/tools/gopls@latest): Error: Command failed: /usr/local/bin/go install -v golang.org/x/tools/gopls@latest go: downloading golang.org/x/sys…

VIEW QUESTION
Back To Top
Search