qjebbs/vscode-plantuml

Incorrect rendering of composition associations

jfrantzius opened this issue · 1 comments

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?

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