-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
Error when using for loop with index syntax #1400
Comments
Could you post the first ~15-20 lines of the language server log? Should contain stuff like zls version, zig version, editor. |
I Hope this is helpful. I'm using neovim with Mason. AFAIK Mason uses |
Correct, part of the reason to see the logs. Follow-up question — Does it happen after you type up the |
It is persistent after saving the file. If I'm not wrong about Mason, then the error is occurs only on zls 0.10.0 but not on latest commit(0.12.0-dev) when using |
Yes, but do you get the error after typing it or after saving the file? Reason is: some plugins, including |
Just checked, the error happens on typing and before saving the file. Plus, it compiles without warnings or errors with
> zig env
{
"zig_exe": "/usr/bin/zig",
"lib_dir": "/usr/lib/zig",
"std_dir": "/usr/lib/zig/std",
"global_cache_dir": "/home/ambuj/.cache/zig",
"version": "0.11.0",
"target": "x86_64-linux.6.1.39...6.1.39-gnu.2.19"
} |
Am I missing something or isn't this issue very simple to explain?
In Short: ZLS 0.10.0 is not compatible with a zig 0.11.0 codebase. |
I understand that the problem is version mismatch. But Mason depends on github release binaries for LSP binary and we can't use the latest github source for everyone. What I am wishing for is to get |
In the original version of the issue, the reported Zig Language Server Version was 91974a3. All good now. |
May I know when the next release of zls will happen? |
Thanks a lot @SuperAuguste, You're a saviour! I was waiting for this moment. Cheers! |
Zig Version
0.11.0
Zig Language Server Version
0.10.0
Steps to Reproduce
Using For Loop with index syntax(tuple loop?)
Expected Behavior
No error emitted by zls
Actual Behavior
Errors when using for loop syntax with two ranges/iterators.
The text was updated successfully, but these errors were encountered: