qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.1k stars 158 forks source link

Incorrect rendering of composition associations #547

Open jfrantzius opened 1 year ago

jfrantzius commented 1 year ago

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 commented 1 year ago

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