-
-
Notifications
You must be signed in to change notification settings - Fork 357
zls crashes every time on start. (.OBJECT_NAME_INVALID => unreachable) #158
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
Comments
This seems to be because of ziglang/zig#6044 (comment). Short term one can perhaps call https://docs.microsoft.com/en-us/windows/win32/api/shlwapi/nf-shlwapi-pathcanonicalizew on full_path before sending it to std.os.realpath as this only happens on windows AFAIK. |
I will take a look at this, I was on a hietus for a while but I will be picking up development this week : ) |
I've put together a potential fix here: ziglang/zig#7537 |
Following the docs on windows:
I set Starting
Setting it to the directory, as this issue suggests, also does not work with a different confusing message:
Setting it to
These error messages are confusing, and checking the config by running |
Does this still happen as of the latest commit? |
This happens every time when I start vscode.
crash output:
platform:
Windows 10
zls client:
zls-vscode
zig version:
master (0.6.0+9fe4c8923)
(used to build zls)zig is in my
PATH
Edit:
Fixed by using
zls.json
and providing the path to zig.I think this happened because of my antivirus software.It was not related to antivirus software.Edit:
zls.json
└> this works.
└> this works but can't start
zig fmt
process.The text was updated successfully, but these errors were encountered: