Skip to content
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

Export Documentation #2063

Closed
Ismoh opened this issue Apr 11, 2023 · 4 comments
Closed

Export Documentation #2063

Ismoh opened this issue Apr 11, 2023 · 4 comments

Comments

@Ismoh
Copy link

Ismoh commented Apr 11, 2023

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Other

Expected Behaviour

I would have expected to see doc.json or doc.md in any log file.

Actual Behaviour

I run

C:\Users\Ismoh-PC\.vscode\extensions\sumneko.lua-3.6.18-win32-x64\server\bin>lua-language-server.exe --loglevel=trace --doc"D:/______BACKUP/NoitaMP_repo/NoitaMP/mods/noita-mp/files/scripts"

and I am unable to find doc.json nor doc.md anywhere in the logs!
image
image
image
image
image

Reproduction steps

In VSCode cmd terminal:

C:\Users\Ismoh-PC\.vscode\extensions\sumneko.lua-3.6.18-win32-x64\server\bin>lua-language-server.exe --loglevel=trace --doc"D:/______BACKUP/NoitaMP_repo/NoitaMP/mods/noita-mp/files/scripts"
Content-Length: 120

{"jsonrpc":"2.0","method":"$/status/report","params":{"text":"­ƒÿ║Lua","tooltip":"Cached files: 0/0\nMemory usage: 2M"}}

Additional Notes

No response

Log File

file_d%3A_______BACKUP_NoitaMP_repo_NoitaMP.log
service.log

@omarkmu
Copy link

omarkmu commented Apr 15, 2023

Have you tried adding a space between --doc and the path?

@Ismoh
Copy link
Author

Ismoh commented Apr 15, 2023

Have you tried adding a space between --doc and the path?

Yes, unfortunatelly didn't help. Are there any warnings or errors, when lua files cannot be parsed?
Because I kept it running for 5h, while coding and nothing happened.

I am also wondering, if anything will happen, when annotations aren't correctly used.
There are not so much information about this topic.

@Ismoh
Copy link
Author

Ismoh commented Apr 15, 2023

D:\______BACKUP\NoitaMP_repo\NoitaMP>C:\Users\Ismoh-PC\.vscode\extensions\sumneko.lua-3.6.18-win32-x64\server\bin\lua-language-server.exe --loglevel=trace --doc \"D:\______BACKUP\NoitaMP_repo\NoitaMP\mods\noita-mp\files\scripts"
root uri = file:///d%3A/______BACKUP/NoitaMP_repo/NoitaMP/%22D%3A/______BACKUP/NoitaMP_repo/NoitaMP/mods/noita-mp/files/scripts
Document exporting completed!
Raw data: [C:\Users\Ismoh-PC\.vscode\extensions\sumneko.lua-3.6.18-win32-x64\server\log\doc.json](file:///c%3A/Users/Ismoh-PC/.vscode/extensions/sumneko.lua-3.6.18-win32-x64/server/log/doc.json)
Markdown(example): [C:\Users\Ismoh-PC\.vscode\extensions\sumneko.lua-3.6.18-win32-x64\server\log\doc.md](file:///c%3A/Users/Ismoh-PC/.vscode/extensions/sumneko.lua-3.6.18-win32-x64/server/log/doc.md)

It works now like a charm! I did a mistake when executing the exe file in command prompt.

Also interesting for reading: #1830

@Ismoh Ismoh closed this as completed Apr 15, 2023
@rhys-vdw
Copy link

Have you tried adding a space between --doc and the path?

This is how it's formatted in the wiki: https://github.com/LuaLS/lua-language-server/wiki/Export-Documentation

From the bin directory, run ./lua-language-server.exe --doc"<PROJECT_PATH>".

I still have not been able to get it to export, but if someone knows maybe they should update the wiki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants