Hey, I've been using Zig Language VS code extension for a while and I am not sure if I have it setup correctly. I don't get any error when trying to use function which doesn't exist, for example std.nonExisting() only shows error after I compile with zig build run. Or when there are unused variables in my code, they should get commented, right? That also doesn't work for me. Anyone has any idea of what could be the problem please?
#ZLS is not working for me?
1 messages · Page 1 of 1 (latest)
https://github.com/zigtools/zls/issues/1020#issuecomment-2302914286
ZLS has the following compatibility requirements:
- A tagged release of Zig or ZLS must be used with the same tagged release of Zig or ZLS
- A master/nightly build of ZLS requires master/nightly build of Zig
If you try to mix versions, it won't work
zls cant detect if a function doesnt exist (unless you turn on build-on-save), and if you want unused variables auto-discarded i think you have to turn that on in the settings (enable autofix). do you get completion?
if youre going to turn on build-on-save id recommend looking at this #1257467422248669245 message
Yeah, that was the problem. Thank you.
I will definitely take a look. Thanks.
I wasn't sure, but thought it was worth mentioning anyway.