Crash with teoz

0 votes
asked Jun 20, 2018 in Bug by Serge Wenger Work (15,620 points)

@startuml
!pragma teoz true

box "group 1" #lightblue
    Participant P1
    Participant P2
end box
' I would like to insert an horizontal minimu space constraint here
box "group 2" #lightgreen
    Participant P3
    Participant P4
end box
par2
 P1->P2
'With the 2 next lines it crash
else
 P3->P4
end
@enduml

related to http://forum.plantuml.net/5926/minimum-horizontal-between-participants-sequence-diagram?show=7818#c7818

1 Answer

0 votes
answered Jun 20, 2018 by plantuml (295,000 points)
selected Jun 21, 2018 by Serge Wenger Work
 
Best answer

Thanks for the report.

With Teoz, you should not use "par2".

I think you can have the very same result with:

@startuml
!pragma teoz true

box "group 1" #lightblue
    Participant P1
    Participant P2
end box
' I would like to insert an horizontal minimu space constraint here
box "group 2" #lightgreen
    Participant P3
    Participant P4
end box
P1->P2
& P3->P4
@enduml

Is this what you are looking for ?

commented Jun 20, 2018 by Serge Wenger Work (15,620 points)
No,

The following crash with version 1.2018.7 and is not correct with 1.2018.6:
@startuml
!pragma teoz true
skinparam BoxPadding 40

box "group 1" #lightblue
    Participant P1
    Participant P2
end box
' I would like to insert an horizontal minimu space constraint here
box "group 2" #lightgreen
    Participant P3
    Participant P4
end box

par2
    loop forever
        P1 -> P2
        P2 --> P1
        end
else
    loop forever
        P3 -> P4
        P4 --> P3
    end
end
@enduml

see  http://forum.plantuml.net/5926/minimum-horizontal-between-participants-sequence-diagram?show=7818#c7818
commented Jun 20, 2018 by plantuml (295,000 points)
With last beta http://beta.plantuml.net/plantuml.jar you can have:

@startuml
!pragma teoz true
skinparam BoxPadding 40

box "group 1" #lightblue
    Participant P1
    Participant P2
end box
' I would like to insert an horizontal minimu space constraint here
box "group 2" #lightgreen
    Participant P3
    Participant P4
end box

loop forever
    P1 -> P2
    P2 --> P1
end

& loop forever
    P3 -> P4
    P4 --> P3
end

@enduml

Note that the syntax has changed.
The "par2" syntax was really a quick&dirty implementation we've done in the old  architecture.
With "teoz", we prefer the "&" syntax.
Do not hesitate to post other issues : some things are still missing in teoz, but we do not know which ones :-)
Thanks again,
commented Jun 21, 2018 by Serge Wenger Work (15,620 points)
OK for me. Thanks
...