Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

go command required, not found: exec: "go": executable file not found in $PATH: stderr: #2499

Closed
badgv opened this issue Oct 17, 2022 · 2 comments

Comments

@badgv
Copy link

badgv commented Oct 17, 2022

I try to use GO extensions in CodeServer,When I open a Go file, prompt the following error:
image

but Execute the Go command in the terminal correct:
image

When the CodeServer starts, the environment variable has been configured:
image

I have tried to add an environment variable in /etc/profile,but still cannot work

@gopherbot gopherbot added this to the Untriaged milestone Oct 17, 2022
@adonovan
Copy link
Member

It seems like there is a discrepancy between the process environments of VSCode, its subshell, and perhaps your regular shell. Can you try starting VSCode from your shell after verifying that the value of PATH is correct?

@badgv
Copy link
Author

badgv commented Oct 21, 2022

It seems like there is a discrepancy between the process environments of VSCode, its subshell, and perhaps your regular shell. Can you try starting VSCode from your shell after verifying that the value of PATH is correct?

I tested it many times with the Docker image, not the problem of PATH。
It is the permissions of the executable file of GO. I set it to 755 and it is correct.

@badgv badgv closed this as completed Oct 21, 2022
@golang golang locked and limited conversation to collaborators Oct 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants