plantuml.1.2018.11.jar doesn't work with comments in config file

0 votes
asked Oct 9, 2018 in Bug by alphatan (180 points)
edited Oct 9, 2018 by alphatan
  • Reproducing steps
    1. create a config file, named plantuml.config
      • content (note the comment)
        ' comment
        skinparam dpi 300
        
    2. create a plantuml file, named some.puml
      • content
        @startuml
        Bob -> Alice : Hello World!
        @enduml
        
    3. run plantuml
      • command line
        java -Djava.awt.headless=true
        -DPLANTUML_LIMIT_SIZE=10240
        -Xmx1024m
        -jar "plantuml.1.2018.11.jar"
        -config "plantuml.config"
        -charset utf-8
        some.puml
        
      • error message
        Error line 0 in file: E:\Temp\some.puml
        Some diagram description contains errors
        
      • generated diagram
        [From e:\temp\some.puml (line 1) ]
        ---------------------------------------
        @startuml
        ~~~~~~~~~~
        Syntax Error?
        
  • Temporary Solution
    • Remove all comments in the config file plantuml.config
  • Affected versions
    • plantuml.1.2018.11.jar
  • Working versions
    • plantuml.1.2018.10.jar
    • plantuml.1.2018.9.jar
    • plantuml.1.2018.1.jar
    • plantuml.1.2017.18.jar
    • plantuml.1.2017.16.jar

1 Answer

0 votes
answered Oct 9, 2018 by plantuml (295,000 points)
selected Dec 17, 2018 by alphatan
 
Best answer
Many thanks for the report and the detailled explanation, it really helps.

This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you
...