lutaml / lutaml-uml

UML module for LutaML
2 stars 2 forks source link

Cardinality is not rendered correctly for png and dot #84

Closed wkwong-ribose closed 3 years ago

wkwong-ribose commented 3 years ago

a

ronaldtse commented 3 years ago

@wkwong-ribose can you help link the original file for debugging? Thanks.

wkwong-ribose commented 3 years ago

Here is the original file copied from the LutaML website.

diagram MyView { title 'My diagram' class Customer { name: String[0..*] -phone: String } class Order { deliveryLocation: Location number: Integer[0..1] } class Location { city address } class NormalOrder { deliveryLocation: Location number: Integer[0..1] } class FastDeliveryOrder { deliveryLocation: Location number: Integer[0..1] } association { owner NormalOrder member Order } association { owner FastDeliveryOrder member Order } association { member_type direct owner Order member Customer } association { member_type aggregation owner Location member Order } }

ronaldtse commented 3 years ago

Thanks, @w00lf can you have a look? Thanks.

ronaldtse commented 3 years ago

Going to move this to lutaml-uml since it is more relevant there.

opoudjis commented 3 years ago

Affects all metanorma model repositories.

w00lf commented 3 years ago

@ronaldtse @wkwong-ribose fixed in 0.7.3

w00lf commented 3 years ago

@ronaldtse @opoudjis can we close this one?

ronaldtse commented 3 years ago

@wkwong-ribose can you confirm? Thanks.

wkwong-ribose commented 3 years ago

Here is the original file copied from the LutaML website.

diagram MyView { title 'My diagram' class Customer { name: String[0..*] -phone: String } class Order { deliveryLocation: Location number: Integer[0..1] } class Location { city address } class NormalOrder { deliveryLocation: Location number: Integer[0..1] } class FastDeliveryOrder { deliveryLocation: Location number: Integer[0..1] } association { owner NormalOrder member Order } association { owner FastDeliveryOrder member Order } association { member_type direct owner Order member Customer } association { member_type aggregation owner Location member Order } }

Using the input here, it does not generate anything (0 byte output). I recall that there is some change on the syntax. Is it related? I am using the lutaml program in the exe folder directly

w00lf commented 3 years ago

Here is the original file copied from the LutaML website. diagram MyView { title 'My diagram' class Customer { name: String[0..*] -phone: String } class Order { deliveryLocation: Location number: Integer[0..1] } class Location { city address } class NormalOrder { deliveryLocation: Location number: Integer[0..1] } class FastDeliveryOrder { deliveryLocation: Location number: Integer[0..1] } association { owner NormalOrder member Order } association { owner FastDeliveryOrder member Order } association { member_type direct owner Order member Customer } association { member_type aggregation owner Location member Order } }

Using the input here, it does not generate anything (0 byte output). I recall that there is some change on the syntax. Is it related? I am using the lutaml program in the exe folder directly

hi there, @wkwong-ribose , what version of dot are you using? I tried to compile it myself and also got an error, upgrade from 2.47.2 -> 2.47.3 solved the issue and its worked. Here is an issue on graphviz forum: https://forum.graphviz.org/t/assert-sz-2-in-convertsptoroute/689/2

wkwong-ribose commented 3 years ago

Thanks @w00lf. Upgrading to 2.47.3 solved the problem.