Skip to content

Ubuntu 20.04 cannot use vscode-go #1587

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
fastopencn opened this issue Jun 24, 2021 · 4 comments
Closed

Ubuntu 20.04 cannot use vscode-go #1587

fastopencn opened this issue Jun 24, 2021 · 4 comments

Comments

@fastopencn
Copy link

error:
Failed to run '/snap/bin/go env' (cwd: /home/cb/go/src/goim): Error: Command failed: /snap/bin/go env -json GOPATH GOROOT GOPROXY GOBIN GOMODCACHE

@gopherbot gopherbot added this to the Untriaged milestone Jun 24, 2021
@rrrooommmaaa
Copy link

rrrooommmaaa commented Jun 24, 2021

Something to do with snap privileges.
I have used snap_workaround call from here and it helped me...
https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1849753/comments/22

@hyangah
Copy link
Contributor

hyangah commented Jun 24, 2021

Duplicate of #166
Indeed snap_workaround was suggested here #166 (comment)

@hyangah hyangah closed this as completed Jun 24, 2021
@TulyOpt
Copy link

TulyOpt commented Sep 9, 2021

Hi, I have the same problem . Other workaround : remove snap version of go and reinstall go directly.

@rrrooommmaaa
Copy link

rrrooommmaaa commented Sep 9, 2021

Hi, I have the same problem . Other workaround : remove snap version of go and reinstall go directly.

Me too, eventually. If it is possible to start debugging using snap's go, there may be insufficient privileges further down the road.
And I installed vscode directly too.

@golang golang locked and limited conversation to collaborators Sep 9, 2022
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

5 participants