Skip to content
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

For loop with negative step: false positive #2973

Open
girvel opened this issue Nov 29, 2024 · 1 comment
Open

For loop with negative step: false positive #2973

girvel opened this issue Nov 29, 2024 · 1 comment

Comments

@girvel
Copy link

girvel commented Nov 29, 2024

How are you using the lua-language-server?

NeoVim

Which OS are you using?

Windows WSL

What is the issue affecting?

Diagnostics/Syntax Checking

Expected Behaviour

Warning shouldn't be displayed

Actual Behaviour

Warning is displayed

Reproduction steps

local r = 1
for x = -r, 1 do
  print(x)
end

Additional Notes

Tested on 3.13.2.
image

Log File

I am using nvim + mason, and it does not save any logs even with command line arguments.

@tomlau10
Copy link
Contributor

duplicated #2818

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

No branches or pull requests

2 participants