-
-
Notifications
You must be signed in to change notification settings - Fork 357
zls 0.14 build on save diagnostic not refreshing on macOS 15.3.1 #2221
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
Have done some investigations myself, it seems the behaviour is caused by the watch implementation After force it use manual implementation instead of zig's builtin watch, refreshing works normally.
Maybe we can provide a config option to disable watch implementation? I'm willing to make a pr. Edited Below is my monkey patch diff, just for those who are impatient just like me
|
After my tracking it seems manual impl is the best way for now, rather than keep it broken right now. see ziglang/zig#21905, ziglang/zig#1333, ziglang/zig#1349 and https://github.com/tpoechtrager/osxcross. My patch here, added new config item |
Works for me. Thank you @GreyElaina! |
Zig Version
0.14.0
ZLS Version
0.14.0
Client / Code Editor / Extensions
nvim 0.10.4 with nvim-lspconfig
Steps to Reproduce and Observed Behavior
src/input.zig
, go to line 143, change.pop()
to.popOrNull()
zls: no field or member function named 'popOrNull' in 'array_list.ArrayListAligned(u8,null)'
).popOrNull()
back to.pop()
, then saveExpected Behavior
build on save diagnostic could refresh normally after save
Relevant log output
The text was updated successfully, but these errors were encountered: