vscode-lua icon indicating copy to clipboard operation
vscode-lua copied to clipboard

luacheck won't work unless the full "lua.luacheckPath" is specified

Open un-def opened this issue 5 years ago • 1 comments

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).

un-def avatar Jun 20 '20 11:06 un-def

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?

moribellamy avatar Dec 09 '20 22:12 moribellamy