-
-
Notifications
You must be signed in to change notification settings - Fork 304
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
ZLS Crashes with panic: reached unreachable code
on Windows 11 with VSCode
#1442
Comments
Hi, First step is to try and reproduce it with a debug build of ZLS (0.11.0 in this case as there have been changes since and it might be fixed in latest). |
Logs from running ZLS in debug mode:
As a side note, is ZLS backwards-compatible with zig versions? i.e. if this bug is fixed in |
Check the value of zig exe path in your vscode settings. |
|
Yeah, although I'd be suspicious of Can you try resetting the value to default/empty (Gear Icon -> Reset Setting) since it's already in PATH. |
Huh, that seems to have worked. Kinda weird, considering Windows is supposed to normalize paths? In any case I guess a decent solution would be to add a check for this scenario and replace Thanks a bunch for the help! |
does this issue also occur when using ZLS master because this was supposed to be fixed by #1366? |
I had the same issue. In my case it was because I had an extra slash in my path I got confused because the error message was not helpful. I wish it told me that the path was invalid. I'm also using 0.11.0. So not sure if it's happening in master or not. It's a bit inconvenient that ZLS fixes go directly to the master version, while we users use the latest stable release. If you try to use newer version of ZLS with the Zig stable version you get error messages complaining of version mismatch. |
This issue has been fixed on master so there is nothing to do. |
Zig Version
0.11.0
Zig Language Server Version
0.11.0
Steps to Reproduce
Unfortunately I don't know what specifically is causing this issue, as it seems to happen on any project with any zig code.
I'm happy to give more information/contribute if necessary, I'm just unsure of where to start currently.
Expected Behavior
ZLS does not crash
Actual Behavior
ZLS crashes. Logs:
(this happens a few times until VS Code gives up).
The text was updated successfully, but these errors were encountered: