vscode-zig icon indicating copy to clipboard operation
vscode-zig copied to clipboard

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

Open Zylann opened this issue 1 year ago • 3 comments

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 avatar Oct 11 '24 23:10 Zylann

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.

hippietrail avatar Oct 12 '24 05:10 hippietrail

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.

Vexu avatar Oct 14 '24 12:10 Vexu

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.

Zylann avatar Oct 14 '24 20:10 Zylann