vscode-plantuml icon indicating copy to clipboard operation
vscode-plantuml copied to clipboard

Incorrect rendering of composition associations

Open jfrantzius opened this issue 2 years ago • 1 comments
trafficstars

Hi, when I preview the following via the extension (version v2.17.5 in Visual Studio Code 1.78.2 on Mac ARM):

@startuml
Page "1" *- "n" Area : contains
Area "1" *- "n" Component : contains
Component "1" *- "n" Area : contains
@enduml

The resulting image is garbled, with composition association diamonds placed wrongly: image

If I try the same on http://www.plantuml.com/plantuml/uml , then the result is correct: image

Perhaps this is due to a buggy / outdated version of PlantUML that comes packaged with the extension?

jfrantzius avatar May 26 '23 11:05 jfrantzius

OK, using the PlantUML public server in the extension configuration fixes the problem:

    "plantuml.server": "https://www.plantuml.com/plantuml",
    "plantuml.render": "PlantUMLServer"

See also https://github.com/qjebbs/vscode-plantuml#use-plantuml-server-as-render

jfrantzius avatar May 26 '23 12:05 jfrantzius