Skip to content

It is not possible to activate all PlantUML elements with "ENABLE_ALL_PLANT_ELEMENTS". New PlantUML server versions produce an error. #389

@kirchsth

Description

@kirchsth

The "Sample with PlantUML elements" sample in the LayoutOptions.md section is not working anymore (ex. PlantUML version 1.2025.4beta3).

If "!ENABLE_ALL_PLANT_ELEMENTS = 1" is set then it produces an error like below:

Error java.lang.IllegalStateException
java.lang.IllegalStateException
        at net.sourceforge.plantuml.command.CommandSkinParamMultilines.execute(CommandSkinParamMultilines.java:112)
        at net.sourceforge.plantuml.command.CommandSkinParamJaws.executeArg(CommandSkinParamJaws.java:114)
        at net.sourceforge.plantuml.command.CommandSkinParamJaws.executeArg(CommandSkinParamJaws.java:87)
        at net.sourceforge.plantuml.command.SingleLineCommand2.execute(SingleLineCommand2.java:189)
        at net.sourceforge.plantuml.command.ProtectedCommand.execute(ProtectedCommand.java:96)
        at net.sourceforge.plantuml.AbstractPSystem.executeCommand(AbstractPSystem.java:234)
        at net.sourceforge.plantuml.command.PSystemCommandFactory.executeFewLines(PSystemCommandFactory.java:181)
        at net.sourceforge.plantuml.command.PSystemCommandFactory.createSystem(PSystemCommandFactory.java:140)
        at net.sourceforge.plantuml.PSystemBuilder.createPSystem(PSystemBuilder.java:197)
        at net.sourceforge.plantuml.BlockUml.getDiagram(BlockUml.java:229)
        at net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:218)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:565)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:459)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:426)
        at net.sourceforge.plantuml.Run.main(Run.java:261)

If the options is not activated then it works without any problem ("only" the style is not correct):

The problem is the changed "\n", "%newline()" handling in the new PlantUML versions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions