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
.luacheckrc file is ignored with defold linting (lua language server asset) #8861
Comments
This is working for me on macOS at least. Remember that if you make a change to the .luacheckrc file you also need to make a change in the linted file before the code editor updates. |
In my experience it does not work on Windows, but works on mac |
Do we know why? Because it is a . file? |
Don't know... Maybe somehow related to this line here https://github.com/defold/lua-language-server/blob/fc0b6da79648013f5cd88ac01fcf44f1e1d78358/script/core/diagnostics/luacheck.lua#L36 ? Could be something about |
Ok, could we perhaps print the rootUri and path to see what they resolve to? I suppose such prints will end up in stdout? local rootUri = (workspace.rootUri or ""):gsub("file://", "")
local path = fs.join(rootUri, ".luacheckrc")
print(rootUri, path) |
Fixed in the latest editor |
Expected behaviour
Added .luacheckrc with unused_args = false in project root
and expected it to ignore function arguments that are unused
Actual behaviour
ignored file
Steps to reproduce
as above. To work around, I rename all variables unused to _
The text was updated successfully, but these errors were encountered: