vscode-lua
vscode-lua copied to clipboard
luacheck won't work unless the full "lua.luacheckPath" is specified
The description of the lua.luacheckPath setting is misleading. It says it “[s]pecifies the path to the luacheck binary (if not found on PATH).” Actually, it can never be found because the PATH variable is not passed to the language server. That means that the default value (which is "luacheck" – https://github.com/trixnz/vscode-lua/blob/v0.12.4/package.json#L52) won't work and the only way to make luacheck work is to specify the full path (e.g., /home/user/.local/bin/luacheck if it installed locally to the user's home).
I can't even get luacheck to work with the path fully specified. Is there a logfile I can check to send you diagnostic info?