-
-
Notifications
You must be signed in to change notification settings - Fork 357
--doc
CLI argument does not work
#2954
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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. |
I can confirm the output path fix, but for me the documentation includes the entire standard library (math, string, debug, _G, ...). Did I miss something? |
@Luke100000 I have the same problem and a fix, but this seems like a different issue? I can't pull the workaround up now, but essentially it is providing a different config that sets all the default libraries to |
I've encountered this problem, I can just add some filters to a function in the doc.lua file. |
I think this is reported in another issue here: #2977 |
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: