You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A warning or an error that the line in question is not complete, regardless of how the parser it's run in processes it:
localvarA, varBfunctionCalledHere()
Actual Behaviour
No warning or error was given, resulting in a 20 minute hunt for a nil in one of the variables that shouldn't exist. The plugin did not flag the line as having a syntax warning or error, even if the Lua engine did not have an issue with the code per se.
Reproduction steps
.
Additional Notes
Apologies for raising another issue, but I couldn't find any information on if this is a niche feature of Lua or a bug that just hadn't been fixed in 5.1. But if it's not a feature and is an unintended side-effort, I feel like it should be raised as a warning by the LLS to alert the user like "hey, are you sure this is what you were intending to do" similar to variables lacking a nil.
With some research, this is a valid syntax and "feature" for writing lua script in one line 😅 .
You can just try to ask lua one line syntax without semicolon in google ai mode to see more details.
Activity
tomlau10 commentedon Apr 6, 2026
With some research, this is a valid syntax and "feature" for writing lua script in one line 😅 .
You can just try to ask lua one line syntax without semicolon in google ai mode to see more details.
As an example:
local a; test(), and thattest()is executed aloneawill still benilI am not sure if there should be a no-one-line diagnostic in LuaLS or not 😕
hint.semicolon: https://luals.github.io/wiki/settings/#hintsemicolonhint.enableas well, LuaLS will render the above test code like this:so when you see a virtual semicolon in your code, you know that it is "smelly" 🤔
PS: I found the default luals hint setting a bit distracting, so I also changed some of the default values:
you can know more details from the wiki page: https://luals.github.io/wiki/settings/#hint