stathissideris / ditaa

ditaa is a small command-line utility that can convert diagrams drawn using ascii art ('drawings' that contain characters that resemble lines like | / - ), into proper bitmap graphics.
GNU Lesser General Public License v3.0
924 stars 87 forks source link

Strange Error; IndexOutOfBoundsException #37

Open castle-bravo opened 6 years ago

castle-bravo commented 6 years ago

I recently installed the 0.10 version of ditaa, and when I try to use it, I get the following error message:


ditaa version 0.9, Copyright (C) 2004--2009  Efstathios (Stathis) Sideris

Running with options:
Reading file: ./pipeline.txt
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
    at java.util.ArrayList.rangeCheck(ArrayList.java:657)
    at java.util.ArrayList.get(ArrayList.java:433)
    at org.stathissideris.ascii2image.graphics.DiagramShape.connectEndsToAnchors(DiagramShape.java:688)
    at org.stathissideris.ascii2image.graphics.CompositeDiagramShape.connectEndsToAnchors(CompositeDiagramShape.java:217)
    at org.stathissideris.ascii2image.graphics.Diagram.<init>(Diagram.java:372)
    at org.stathissideris.ascii2image.core.CommandLineConverter.main(CommandLineConverter.java:241)

I don't know what to make of this.

stathissideris commented 6 years ago

Could you please provide the exact command line that you used?

stathissideris commented 6 years ago

Not sure what happened with your version, but 0.11 works as expected, maybe try that instead?