Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

plantuml.jar 2017.10 appears to be broken

0 votes

Using a file containing simply:

   @startuml test.png
   version
   @enduml

...and also every other file I've tried it with, plantuml.jar 2017.10 gives the following exception report:

(0.427 - 981 Mo) 853 Mo - Reading file: test.txt
(0.427 - 981 Mo) 853 Mo - name from block=test.png
(0.427 - 981 Mo) 853 Mo - Checking=test.png
(0.427 - 981 Mo) 853 Mo - f=test.png
(0.428 - 981 Mo) 853 Mo - Relative, so let's change it
(0.428 - 981 Mo) 853 Mo - f=c:\Users\agillesp\Documents\test.png
(0.428 - 981 Mo) 853 Mo - It's not a directory
(0.429 - 981 Mo) 853 Mo - test.png is not taken as a directory
Exception in thread "main" java.lang.IllegalArgumentException
        at net.sourceforge.plantuml.SuggestedFile.<init>(SuggestedFile.java:48)
        at net.sourceforge.plantuml.SuggestedFile.fromOutputFile(SuggestedFile.java:74)
        at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:180)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:417)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:328)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:298)
        at net.sourceforge.plantuml.Run.main(Run.java:158)
 
But it works fine with 2017.09 and earlier versions
 
asked Apr 7 in bug by agillesp (580 points)

1 Answer

+1 vote

Thanks for the report.

We'll fix this in next release, but not before a week.

A possible workaround is to remove the ".png" extension:

   @startuml test
   version
   @enduml

The .png will be added by PlantUML when generating the file.

Really sorry about this one!

answered Apr 7 by plantuml (124,290 points)
No panic - I can use 2017.09 until then.

Thanks for your first class support.

--Alan G.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...