-
Notifications
You must be signed in to change notification settings - Fork 172
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
Getting "<luafile>: contains no items" #258
Comments
Oh, just terminating is not good! I see you have the docs in another repo, but
Fails to pull? Is it public? I don't see it in your repo list. Basically need to see the config.ld and work from there... (Pretty cool project, BTW) |
Hi! The repository would be It turns out that the last line where
and LDoc simply didn't like that - so it stopped there. The thing is just that there was not explicit error message like, "Error in line 852; Please fix this" or something which is why I didn't think it could be just a malformed comment or whatever made LDoc stumble here. I don't know if it's possible but maybe prompting an error message would help in such cases. BR; |
We must definitely have an error there! Thanks, I think you've found a bug. |
You're welcome! Thanks for keeping LDoc up! 👍 |
@lionkor You mentioned you had or could work up a fix for this issue. Is that still something you can submit? |
I can take a look, yeah, but I dont have a fix ready yet |
I could not reproduce it with the --- my function
-- takes nothing and returns nothing
-- @return nothing
function DoNothing()
end
--
Thing = {
} the output is
|
…ixes lunarmodules#258) If `search_for_token` does not find a `module` token, t is nil, and t is returned instead of the original t. This is an issue, because it causes a branch in `parse.lua` to erroneously be executed, which exits the entire parsing process with the warning `contains no items`, even if items are left (because the original t was scrubbed).
I am trying to generate a documentation for https://github.com/FAForever/fa/tree/develop/lua
To do so I am running from within
E:\git\faforever\fa
but all I get is:
However, I can generate documentation for other sub-directories without problems e.g.
works without troubles.
I'd like to generate a documentation for the whole
lua\
directory. How can I makeldoc
simply run over all files and ignore whether there are items or not? Is that possible?Running it for the entire directory
ldoc lua -d E:\git\faforever\fa-lua-doc\
will parse only through the first directory but then stop without a warning or anything. These are the last few lines beforeldoc
terminates:No message or reason why it terminated without producing anything :/
The text was updated successfully, but these errors were encountered: