microsoft / vscode-go

An extension for VS Code which provides support for the Go language. We have moved to https://github.com/golang/vscode-go
Other
5.93k stars 645 forks source link

Unable to run Go in VS Code - command not found #3233

Closed nageshcaparthy closed 4 years ago

nageshcaparthy commented 4 years ago

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 https://github.com/Microsoft/vscode-go/issues/1514 but no luck.

Here is the image of this issue:

image

What version of Go, VS Code & VS Code Go extension are you using?

Regards, Nagesh

hyangah commented 4 years ago

@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.

nageshcaparthy commented 4 years ago

@hyangah that did not work... I get command not found...

@ramya-rao-a Any suggestions on this?? it will be really helpful.

stamblerre commented 4 years ago

@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.

nageshcaparthy commented 4 years ago

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.