ASCII ART / Unicode Art : Delay not supported

0 votes
asked Nov 10, 2016 in Bug by prisme60 (150 points)

The following code can't be generated with option -ttxt or -tutxt. The following exception occurs :

>java -jar plantuml.8048.jar -charset UTF-8 -tutxt uml-sources\ComplexeExemple.plantuml -o ..\uml-sorties

java.lang.UnsupportedOperationException: DELAY_TEXT
        at net.sourceforge.plantuml.asciiart.TextSkin.createComponent(TextSkin.java:107)
        at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSetInitializer.prepareDelay(DrawableSetInitializer.java:317)
        at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSetInitializer.createDrawableSet(DrawableSetInitializer.java:186)
        at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramTxtMaker.<init>(SequenceDiagramTxtMaker.java:86)
        at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.getSequenceDiagramPngMaker(SequenceDiagram.java:200)
        at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.exportDiagramInternal(SequenceDiagram.java:217)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagram(UmlDiagram.java:226)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(PSystemUtils.java:173)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:63)
        at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:207)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:413)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:335)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:310)
        at net.sourceforge.plantuml.Run.main(Run.java:136)
Exception in thread "main" java.lang.UnsupportedOperationException: UTXT
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.createUGraphic(ImageBuilder.java:299)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageInternal(ImageBuilder.java:165)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageTOBEMOVED(ImageBuilder.java:121)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagramError(UmlDiagram.java:275)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagramError(UmlDiagram.java:241)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagram(UmlDiagram.java:234)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(PSystemUtils.java:173)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:63)
        at net.sourceforge.plantuml.SourceFileReader.getGeneratedImages(SourceFileReader.java:207)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:413)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:335)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:310)
        at net.sourceforge.plantuml.Run.main(Run.java:136)

@startuml
Bob -> Last : Yes it works!

... ooops problem with ascii / unicode art! ...
@enduml

 

http://www.plantuml.com/plantuml/png/3Sex3e0W40N0dbCy3Y3s5XRMNi0IaCIDdqVODLnVfvw52SECDQfXmbOKOkXifthdGWWWMHMrCLtbHXSx43MBOCJxIEPU49jv_FS3

1 Answer

0 votes
answered Nov 13, 2016 by plantuml (294,960 points)
Thanks for the report.

This has been (partially) solved in last beta: https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

There are some case where the display is not perfect, but at least it does not crash anymore.

Do not hesitate to post again if you find other issue with ascii-art : our tests are far from complete on this side.

Regards,
...