-
-
Notifications
You must be signed in to change notification settings - Fork 320
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
--doc
CLI argument does not work
#2954
Comments
I have discovered that this error goes away if I provide I feel like the wiki would greatly benefit from an example! |
I believe this is supposed to output to the log path if no |
Yeah, it's hard to decypher. But it fails with the same error on both windows and WSL for me. On WSL I built from master, on Windows I downloaded latest release exe. |
I remembered there was a heavy refactor on the doc generation code, don't know if it has broken anything 🤔 |
This would benefit greatly from a default output dir, or an error log that catches that the param was not added and logs an error and example use. |
I mentioned this issue in my previous issue, and I need to provide two options: |
I'm surprised that this file isn't using the type annotations that lua language server provides to alert the developer that the CLI arguments might be |
I looked at the source code of this file, and the error point was that the outputDir variable was concatenated with the string when the nil value was valued. I don't know when the default log folder path described in the documentation was given this parameter, perhaps the developers have their own considerations. |
How are you using the lua-language-server?
Command Line
Which OS are you using?
Windows WSL
What is the issue affecting?
Other
Expected Behaviour
Document generation, as documented here:
https://luals.github.io/wiki/usage/#--doc
Actual Behaviour
Reproduction steps
lua-language-server --doc <path-to-folder>
Additional Notes
I tried this on both Windows and WSL with the same result.
Log File
No response
The text was updated successfully, but these errors were encountered: