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

Specifying the path to Zig leads to error "cant find Zig in PATH" and does not set the path to Zig #237

Open
Zylann opened this issue Oct 11, 2024 · 3 comments

Comments

@Zylann
Copy link

Zylann commented Oct 11, 2024

I installed the extension on Windows 11.
This pops up when I open my existing project:
image
I choose "Specify Path"
I then navigate to where zig.exe already is (I can't choose a folder so I guess it wants that (then I noticed the title of the dialog)):
image
Which then leads to this error notification:
image

Then after that when I restart vscode the extension asks me again to locate Zig. The setup dialog did not set the path in settings.

I dont know if that's a bug or if I'm missing some kind of way to set this up, but it looks like a bug considering how obvious those steps are

@Zylann Zylann changed the title Specifying the path to Zig causes error "cant find Zig in PATH" Specifying the path to Zig causes error "cant find Zig in PATH" and does not set the path to Zig Oct 11, 2024
@Zylann Zylann changed the title Specifying the path to Zig causes error "cant find Zig in PATH" and does not set the path to Zig Specifying the path to Zig leads to error "cant find Zig in PATH" and does not set the path to Zig Oct 11, 2024
@hippietrail
Copy link

Pretty sure I hit this every time I started playing with zig after being away for months. I was always confused whether it wanted me to pick the executable or the directory it was in. When I randomly guess right I forget about it again.

@Vexu
Copy link
Member

Vexu commented Oct 14, 2024

The prompt should not allow you to select a folder so that should not be an issue. Does the "cant find Zig in PATH" popup persist or is it only shown after you select the path? And can you confirm that in your settings file there is a zig.path: "some/path/to/zig.exe" pointing to a valid Zig binary?

This step may soon be automated by #230 so hopefully this issue should get resolved at the latest by then.

@Zylann
Copy link
Author

Zylann commented Oct 14, 2024

Does the "cant find Zig in PATH" popup persist or is it only shown after you select the path?

It is shown after I choose the path, but then I can repeat this forever if I restart VSCode.

can you confirm that in your settings file there is a zig.path: "some/path/to/zig.exe" pointing to a valid Zig binary?

Nope, as I said it doesn't fill that setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants