activate/deactivate issues

0 votes
asked Dec 21, 2021 in Bug by anonymous

Hello,

I think these samples should generate same output but it is not. Any ideas why activation and deactivation are not starting at same height with lifelines in all cases?

no teoz:

@startuml
'!pragma teoz true
note over Bob, Alice: teoz false
activate Bob
Bob -> Alice ++--: not ok
Alice-> Alice: style 1
deactivate Alice

activate Bob
Bob -> Alice ++: not ok
deactivate Bob
Alice -> Alice: style 1
deactivate Alice

activate Bob
Bob -> Alice: ok
deactivate Bob
activate Alice
Alice -> Alice: style 1
deactivate Alice

activate Bob
Bob -> Alice --: ok
activate Alice
Alice -> Alice: style 2
deactivate Alice
@enduml

PlantUML diagram

With teoz:

@startuml
!pragma teoz true
note over Bob, Alice: teoz true
activate Bob
Bob -> Alice ++--: not ok
Alice-> Alice: style 1
deactivate Alice

activate Bob
Bob -> Alice ++: not ok
deactivate Bob
Alice -> Alice: style 1
deactivate Alice

activate Bob
Bob -> Alice: not ok
deactivate Bob
activate Alice
Alice -> Alice: style 1
deactivate Alice

activate Bob
Bob -> Alice --: not ok
activate Alice
Alice -> Alice: style 2
deactivate Alice
@enduml

PlantUML diagram

commented Dec 22, 2021 by anonymous

Another problem with teoz and --++
arrow, lifeline and note should be in same height also in last case?

@startuml
!pragma teoz true

Bob -> Alice : message
& note right of Alice: ok
Alice -[hidden]> Alice

activate Bob
Bob -> Alice --: deactivate
& note right of Alice: ok

Bob -> Alice ++: activate
& note right of Alice: ok
deactivate Alice

activate Bob
Bob -> Alice --++: act+deact
& note right of Alice: not ok
deactivate Alice
@enduml

PlantUML diagram

1 Answer

0 votes
answered May 26 by The-Lu (65,440 points)

Hi A., and all

FYI, it is now fixed with the last PlantUML version:

Thanks to the PlantUMML team and contributors, yes

Regards,
Th.

...