Using AWSPuml and <code> causes Java error

0 votes
asked Oct 22, 2021 in Bug by Jason Wilson

Managed to reduce to a fairly small sample:

@startuml

!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v11.1/dist
!include AWSPuml/AWSCommon.puml

Alice -> Bob
note right
<code>
Some text
</code>
end note

@enduml
If remove the include AWSPuml/AWSCommon.puml it works.
Or if remove the <code></code> lines it also works
Cant see anything obvious in that include to cause issues.
Using:

PlantUML version 1.2021.9 (Sun Jul 25 20:13:56 AEST 2021)

(GPL source distribution)

Java Runtime: OpenJDK Runtime Environment

JVM: OpenJDK 64-Bit Server VM

Default Encoding: UTF-8

Language: en

Country: AU

PLANTUML_LIMIT_SIZE: 4096

Dot version: dot - graphviz version 2.48.0 (20210717.1556)

Installation seems OK. File generation OK

commented Oct 22, 2021 by Martin (9,120 points)
edited Oct 22, 2021 by Martin

The problem line seems to be:

skinparam wrapWidth 200

Minimal example:

@startuml
skinparam wrapWidth 200
Alice -> Bob
note right
<code>
Some text
</code>
end note
@enduml

A workaround is to set the wrapwidth back to 0 after the include:

@startuml
!define AWSPuml https://raw.githubusercontent.com/awslabs/aws-icons-for-plantuml/v11.1/dist
!include AWSPuml/AWSCommon.puml
skinparam wrapWidth 0
Alice -> Bob
note right
<code>
Some text
</code>
end note
@enduml

1 Answer

0 votes
answered Oct 22, 2021 by plantuml (295,760 points)
Many thanks for the feedback.

This has been fixed in last beta http://beta.plantuml.net/plantuml.jar and on the online server.
...