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

Unable to perform go build #25138

Closed
bviktor opened this issue Apr 21, 2017 · 3 comments
Closed

Unable to perform go build #25138

bviktor opened this issue Apr 21, 2017 · 3 comments

Comments

@bviktor
Copy link

bviktor commented Apr 21, 2017

  • VSCode Version: 1.11.2
  • OS Version: 1703 15063.138

Steps to Reproduce:

  1. Get a VM image for win10 15.15063 from modern.ie

  2. start it up, install updates, restart

  3. install vs code with defaults

  4. install go runtime with defaults

  5. start vs code

  6. install go extension, restart vs code

  7. create a new .go file:

package main
import "fmt"
func main() {
	fmt.Println("foobar")
}
  1. ctrl+f5

Expected output: foobar printed

Actual output:

The program "${file}" does not exist: Error: ENOENT: no such file or directory, lstat 'C:\Program Files (x86)\Microsoft VS Code\${file}'

On the top the following appears:

Error: Failed to continue: "The program attribute must point to valid directory, .go file or executable."

Which you can either "close" or "open launch.json" but if you try the latter, nothing happens at all.

@bviktor
Copy link
Author

bviktor commented Apr 21, 2017

@joaomoreno here it is thanks.

@joaomoreno
Copy link
Member

joaomoreno commented Apr 21, 2017

Actually, after a better read: microsoft/vscode-go#878

@bviktor
Copy link
Author

bviktor commented Apr 21, 2017

Thank you!

@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants