Open hohwille opened 2 weeks ago
Please provide a repository to reproduce.
Please provide a repository to reproduce.
Seriously for a NullPointerException where I provided the full stacktrace. Sounds like a hotline of an internet provider ;)
So here is as project that gives me the error as ZIP file: asciidoctorj-bug-56.zip
Next I expect is that you are telling me that it works on your end and will close the issue. ;)
Maybe my graphviz installation is not sane but some diagrams can be generated and others not... Maybe it is because I am using Windows and others are using Linux or Mac... I would love to get more help from your tool if my installation is probably not sane instead of getting a NullPointerException inside a diagram. I hope this still helps to get any further with my bug report. Thanks.
Reinstalled Graphviz according to documentation and now getting this error in the image:
PlantUML version 1.2024.5 (Sun May 26 11:15:58 CEST 2024)Dot version: dot - graphviz version 2.44.1 (20200629.0846)Error: dot generates unreadable SVG file. Check you dot installation.
If I open this in IntelliJ it is just working. The maven plugin approach is however, very fragile.
It works on OSX:
Seriously for a NullPointerException where I provided the full stacktrace. Sounds like a hotline of an internet provider ;)
Your internet provider probably gets money for the service or non-service they provide. I am doing this without any compensation in my free time that I have to share with family, sleep, eat, ...
If anybody else wants to help, go ahead. I am out.
Thanks for testing. I already assumed that something is wrong with the graphviz installation. I am however unable to figure out what or how to fix it. Since I followed the instructions from PlantUML, I have no clue what else to try.
Sorry, if my response sounded distracting. I am also an open-source developer and react to bugs in my code and also I report many bugs to other OSS projects and also consider my time for that valuable. Very often I get the answer that I need to provide a test project what also takes quite some time to isolate. In this case, I knew from the start that this will take me the time but the result, that you say that it is working. Exactly that happened. For me as a developer an NPE always speaks for itself, and I can at least do some initial investigation and most likely a fix without further information...
Some more constructive thoughts:
SvekLine
has been removed. https://github.com/plantuml/plantuml/tree/master/src/net/sourceforge/plantuml/svek - Maybe considering an update of that library would be an option.
I have tried
asciidoctorj-diagram
with yourasciidoctor-diagram-example
and that is working. However, now that I used it in a real world project, it fails with very strange errors:I could render the stacktrace as SVG now and with some extra effort extract the error message as plain text:
Also when I change the backend from
html
topdf
then the maven build fails with this error:I assume that this one is not related to
asciidoctorj-diagram
. If you want I can file it as a separate issue to asciidoctorj or asciidoctor-maven-plugin.AsciiDoc and PlantUML are really awesome. However, if the toolchain is not working it kind of falls into pieces. When a maven plugin calls Ruby in Java that then executes an external programm (
dot
aka graphviz) it gets hard for me to trace down the error further. If there is anything more I can do to provide more debugging information, please let me know.It would be awesome if you have any hints, workarounds or fixes for me. Thanks in advance for making asciidoctor and the diagram extension. I am also an active OSS developer on github and very much appreciate your work!