Skip to content

Error on format #93

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

Closed
clement0016 opened this issue Mar 27, 2023 · 2 comments
Closed

Error on format #93

clement0016 opened this issue Mar 27, 2023 · 2 comments
Labels

Comments

@clement0016
Copy link

Formatting leaves error on save in for loops

Before formating:

for(a) |b, i| {
    // some_code
}

After formating:

for(a, 0..) |b, i| {
    // some_code
}
@Vexu
Copy link
Member

Vexu commented Mar 27, 2023

That is the new for loop syntax ziglang/zig#14671, formatting is by default provided by your Zig binary so either you have set it to use zls or the extension is using a different version of Zig than what you are compiling with.

@Vexu Vexu added the question label Mar 27, 2023
@clement0016
Copy link
Author

Oh ok thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants