Skip to content

Instantly share code, notes, and snippets.

@kachar
Created April 8, 2021 07:22
Show Gist options
  • Save kachar/7ea51286e7503a3f94590f2d303e3811 to your computer and use it in GitHub Desktop.
Save kachar/7ea51286e7503a3f94590f2d303e3811 to your computer and use it in GitHub Desktop.

After the March update 1.55.0 of VSCode I've experienced a misconfiguration in golang extension

Failed to run '/snap/bin/go env. The config change may not be applied correctly.

Golang is installed locally via snap so I had to change the following paths in vscode settings.json

go env GOPATH
go env GOROOT
  "go.inferGopath": true,
  "go.gopath": "/home/kachar/go",
  "go.goroot": "/snap/go/7221",

After updating the setting go.goroot as the returned from env command and reload of vscode I got:

All tools successfully installed. You are ready to Go :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment