PlantUML doesn't draw association between class and enum when a note is present
See original GitHub issuePreflight Checklist
- I agree to follow the Code of Conduct that this project adheres to.
- I have searched the issue tracker for a feature request that matches the one I want to file, without success.
Describe the bug
I met a peculiar behavior while utilizing your wonderful functionality or rendering PlantUML
diagrams.
For some reason, when I try to create an association between a class field and enum
related to it,
if said enum
has a note attached to it’s member, the association isn’t there.
To Reproduce Steps to reproduce the behavior:
- Go to https://app.diagrams.net/
- Click on
Arrange => Insert => Advanced => PlantUML
- Insert the following
PlantUML
diagram:
@startuml
enum Foo {
Bar
}
note left of Foo::Bar
Buggy note
end note
class Buzz {
foo: Foo
}
Buzz::foo --> Foo
@enduml
- See the error
Expected behavior
As displayed by plantuml.com, the association needs to be visibly rendered.
Screenshots
draw.io
result:
plantuml.com
result:
draw.io version (In the Help->About menu of the draw.io editor):
- 19.0.0
Desktop (please complete the following information):
- OS:
Manjaro Linux
- Browser
Brave
- Version 1.39.111 Chromium: 102.0.5005.61 (Official Build) (64-bit)](https://brave.com/latest/)
Additional context
I suspect some dependency update are due on your server side, since I have at the moment no means to confirm how standalone installation behaves but considering that official implementation does work okay that seems to be precisely the case.
Issue Analytics
- State:
- Created a year ago
- Comments:6 (1 by maintainers)
Top GitHub Comments
The issue is fixed. We are now on version 1.2022.6 of PlantUml
This seems to be the result of regression, according to https://github.com/plantuml/plantuml/issues/983 But still, it’s odd that official PlantUML server uses GraphViz from 2014, I wanted to debug the issue by downgrading GraphViz earlier before I went to PlantUML’s bug-tracker, and for distros like Arch it’s such a pain to find such an ancient version for the dependency. Also, I’ve checked on PlantUML release in-between:
The issue seems to be fixed for the following diagram:
PNG:
SVG: