Unable to run Go in VS Code - command not found
nageshcaparthy opened this issue · 4 comments
Hi,
I have read the details on GoPath and also the previous issues reported. I am not able to fix the issue.
I am using
VS Code 1.39.2
Ubuntu 14.6
I have tried to remove the .vscode extensions folder as mentioned in #1514 but no luck.
Here is the image of this issue:
What version of Go, VS Code & VS Code Go extension are you using?
-
Run
go version
to get version of Go
go: Command not found. -
Run
code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders
1.39.2
6ab598523be7a800d7f3eb4d92d7ab9a66069390
x64 -
Check your installed extensions to get the version of the VS Code Go extension
Go 0.14.0 -
Run
go env GOOS GOARCH
to get the operating system and processor architecture details
go: command not found
Regards,
Nagesh
@nageshcaparthy Please follow the Go installation guide in https://golang.org/doc/install
Eventually this extension also suggests and manages the go installation, but we are not there yet.
@hyangah that did not work... I get command not found...
@ramya-rao-a Any suggestions on this?? it will be really helpful.
@nageshcaparthy: Did you get any errors from the Go installation? What directory did you extract the archive to? You will need to add that directory to your PATH
(https://golang.org/doc/install#tarball).
This extension will not be useful without a Go installation, so configuring your installation correctly will be the fix.
I guess Path was the issue. Thank you for your support.
Might need the documentation to be adding the PATH or maybe I missed it.