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

Doc export file paths all start with ile:// #2971

Open
rhys-vdw opened this issue Nov 28, 2024 · 4 comments
Open

Doc export file paths all start with ile:// #2971

rhys-vdw opened this issue Nov 28, 2024 · 4 comments

Comments

@rhys-vdw
Copy link

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

Paths in exported doc JSON should start with file:/// as in the example:

"file": "file:///c%3A/Users/Me/Documents/Array.lua",

Actual Behaviour

Missing the leading f:

"file": "ile:///home/rhys/spring/./cont/base/springcontent/LuaHandler/handler.lua",

Reproduction steps

rhys@RhysDesktop:~/spring$ lua-language-server --doc . --doc_out_path docs/
root uri = file:///home/rhys/spring/.
Documentation exported:91/2488

docs/doc.json
docs/doc.md

Additional Notes

rhys@RhysDesktop:~/spring$ lua-language-server --version
<Unknown>
rhys@RhysDesktop:~/spring$ lua-language-server --help
Content-Length: 55

{"jsonrpc":"2.0","method":"$/hello","params":["world"]}

How do you get a version?

Log File

No response

@rhys-vdw
Copy link
Author

Ah...

rhys@RhysDesktop:~/spring$ brew info lua-language-server
==> lua-language-server: stable 3.13.0 (bottled), HEAD

@tomlau10
Copy link
Contributor

This may be a related issue: #2964, which points out that the file uri format seems changed since a recent refactor PR #2821 by a contributor.

I strongly suspect that there maybe some hidden bugs in that refactor PR. 🤔

@rhys-vdw
Copy link
Author

We are currently working on a full documentation export for a large RTS engine, so it should be a good test case. Is there a prior release version we can try rolling back to to compare doc export before this PR was merged?

@tomlau10
Copy link
Contributor

By looking at the release page, #2821 is released in v3.10.6, so I guess you may try the prior release v3.10.5 🤔

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

2 participants