-
Notifications
You must be signed in to change notification settings - Fork 7
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
Cannot generate plantuml diagrams #19
Comments
Have you tried pip installing graphviz on the system first? I don't believe it comes with plantuml directly - it probably needs to be on the path or pointed at via your sphinx config file. |
Ok my mistake, the documentation stop generating after 6.6 gradle version, 6.5.x still works well. I don't think that my configuration is bad if it's working on gradle 6.5.1. |
Thanks for reporting. Just don't have enough time to look into this at the moment since I've just joined a company. Any pull requests would be appreciated. |
I've been bitten by this too. My work-around is to generate documentation manually outside Gradle. I set I have investigated, and I think I can pin-point the problem. I don't understand the mechanism at all really, or why upgrading Gradle brought it on. Fortunately, that's not the bit that needs fixing. The error can be reproduced with particular versions of plantUML, alone, at the command prompt:
Whereas:
gives me the image I'm entitled to. Now, the Gradle plug-in depends on classes from the Sphinx-Maven plug-in, and
I am wondering if there is anything I can do in my Gradle script to force the version up to 1.2020.21? PS. @trustin : this is awesome stuff, that I realise rests on the shifting sands of others' work. Thanks for doing it. I find it enormously helpful to be able to express my ideas in UML in Sphinx. After working this way most of the year, including to describe some structures inside CPython, I wonder how the Python core devs manage to communicate without using it. |
Thanks everyone for your patience and kind words! I've just released a new version that depends on PlantUML |
Unfortunately, it still seems to have a problem. Let me take another look later. |
Here's my analysis: Since 6.5, Gradle instruments the code that intercepts various potentially important calls into the JARs in the dependency of a plugin. For example, There are a few options to fix this problem:
|
Workaround:
Basically you have to define plantuml inside gradle task, not plugin, otherwise Exception will be thrown |
With gradle 6.5 and above running task does not generate uml diagrams.
Error below:
The text was updated successfully, but these errors were encountered: