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
Open the workspace in VSCode and change some diagnostics levels in the settings. I changed the groupSeverity of global to Error and the severity of missing-parameter to Error. VSCode shows the diagnostics as expected:
Execute the check command with the CLI. I executed the command C:\Users\<user name>\.vscode\extensions\sumneko.lua-3.6.11-win32-x64\server\bin\lua-language-server.exe --loglevel debug --logpath log --metapath meta --configpath C:\Development\git-repos\bug-report\diagnosis-report\settings.json --check C:\Development\git-repos\bug-report\diagnosis-report\library --checklevel Hint (the current working directory is set to C:\Development\git-repos\bug-report\diagnosis-report) with the following settings file content:
It is confusing that undefined globals are reported.
6. More confusingly, if I comment line 11 in B.lua (m = require('R')) out and execute the check command again, 99 problems are reported. Here is an incomplete list of the problems:
I am not sure if I am using the CLI correctly. I oriented me on the wiki page about the diagnosis report and CLI flags. So, if this is not a bug, I am sorry and you can close this issue.
How are you using the lua-language-server?
Command Line
Which OS are you using?
Windows
What is the issue affecting?
Diagnostics/Syntax Checking
Expected Behaviour
For the same code and configuration, the diagnostics reported by the CLI match the diagnostics in VSCode.
Actual Behaviour
For the same code and configuration, the diagnostics reported by the CLI deviate from the diagnostics in VSCode.
Reproduction steps
B.lua
andR.lua
. The content ofB.lua
is:The content of
R.lua
is:groupSeverity
ofglobal
toError
and theseverity
ofmissing-parameter
toError
. VSCode shows the diagnostics as expected:check
command with the CLI. I executed the commandC:\Users\<user name>\.vscode\extensions\sumneko.lua-3.6.11-win32-x64\server\bin\lua-language-server.exe --loglevel debug --logpath log --metapath meta --configpath C:\Development\git-repos\bug-report\diagnosis-report\settings.json --check C:\Development\git-repos\bug-report\diagnosis-report\library --checklevel Hint
(the current working directory is set toC:\Development\git-repos\bug-report\diagnosis-report
) with the following settings file content:It is confusing that undefined globals are reported.
6. More confusingly, if I comment line 11 in
B.lua
(m = require('R')
) out and execute the check command again, 99 problems are reported. Here is an incomplete list of the problems:Additional Notes
I am not sure if I am using the CLI correctly. I oriented me on the wiki page about the diagnosis report and CLI flags. So, if this is not a bug, I am sorry and you can close this issue.
Log File
This is the log file for the first run:
file_c%3A_Development_git-repos_bug-report_diagnosis-report_library.log
This is the log file for the second run (with line 11 commented out):
file_c%3A_Development_git-repos_bug-report_diagnosis-report_library.log
The text was updated successfully, but these errors were encountered: