Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 1704 by [email protected]: Unable to generate documentation with jython -m robot.libdoc command
http://code.google.com/p/robotframework/issues/detail?id=1704

I was generating missing documentation for the DatabaseLibrary (Java) [1] and I did notice that with my version of JDK [2] and OS [3], the command: jython -m robot.libdoc DatabaseLibrary.java DatabaseLibrary.html fails on the following error: X:\XXXX\YYY>jython -m robot.libdoc DatabaseLibrary.java DatabaseLibrary..html Building library 'DatabaseLibrary.java' failed: TypeError: getRootDocImpl(): expected 12 args; got 11

Try --help for usage information.
X:\XXXX\YYY>

Now I did do some guessing and I did monkey patch the javabuilder.py from
    root = jdoctool.getRootDocImpl('en', 'utf-8', filter, java_names,
                                   List.nil(), List.nil(), False,
                                   List.nil(), False, False, True)

to
    root = jdoctool.getRootDocImpl('en', 'utf-8', filter, java_names,
List.nil(), List.nil(), False, List.nil(),
                                   List.nil(), False, False, True)
NOTE: No idea how java world works, just did use good old try and fail method. Nor I did not read the getRootDocImpl documentation, mainly because could not find it.

With the monkey patch I was able to generate the missing documentation. I would have assumes that I am able run libdoc without the patch.

[1] https://github.com/ThomasJaspers/robotframework-dblibrary
[2] c:\XXX>jybot --version
Robot Framework 2.8.4 (Jython 2.5.3 on java1.8.0_05)

c:\XXX>
[3] Windows 7 (64bit)


--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--

--- You received this message because you are subscribed to the Google Groups "robotframework-commit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to