Anyone on Windows get LDoc to work?

I can’t seem to get LDoc to behave. I setup a ldoc.bat and added to path. But no matter what I try I get this error

ldoc: missing required parameter: file and there is nearly zero information on Google about this error.

I’m strongly considering making a Defold specific documentation generator that can simply be included as a module and just work.

I haven’t tried on Windows but I just tried on Mac and “it just worked” ™. I installed via LuaRocks to a user local installation and ran with ldoc path/to/lua/files and got the output in the “doc” folder.

1 Like

I followed Windows instructions they gave, tried many variations with ldoc and all of the options it gives with -h same deal. Tried going to folder with config.ld and ldoc . doesn’t work either.

1 Like

Finally got it to work on my Windows install, so I’ll begin to use ldoc to document all of my projects.

I had to first uninstall everything Lua, remove all references from path

Then installs LuaForWindows_v5.1.5-52.exe with LuaRocks installed

Then from an admin cmd “luarocks install ldoc”

Then from cmd “ldoc.lua .” works

2 Likes