teoz, deactivate not working

0 votes
asked Mar 11, 2021 in Bug by Hannu

Hello,

Looks that deactivate doesn't work when teoz is enabled:

!pragma teoz true
b -> a ++ #red : hello
deactivate a
b -> b : self

http://www.plantuml.com/plantuml/png/KomeIapFJLGeISslKYWfAatbIbBGjLD8LD3MLb0kIarHi5B8ICt9oUTAIKrCBiaiIon9LKY4g4a2oXMdvgHn0G00

Teoz disable:
http://www.plantuml.com/plantuml/png/SoWkIImgAStDuL9NB2XAJCzDL2X9pQzIA2agJULAKj2rKqXKqDPMK2vAJL6mKiX8pSd9vqf9JKmkoInBB4bLI8IeIGBA5QVcf74vfEQb00q30000

Interestingly, when running plantuml locally with teoz enabled, png seems to be generated correctly (like in first picture) but svg has result like in second picture. Generated svg has source where "deactivate" is correctly generated.

Tested with PlantUML version 1.2021.2, initially noticed with version 1.2021.00

br,

Hannu

1 Answer

0 votes
answered Mar 12, 2021 by plantuml (294,960 points)

Thanks for the report : this is fixed in last beta http://beta.plantuml.net/plantuml.jar and on the online server.

commented Mar 15, 2021 by Hannu
Thanks, I also noticed another issue.

Double deactivate is preventing further activate.

@startuml
!pragma teoz true
b -> a ++ #red : hello
deactivate a
deactivate a
b -> b : self msg
activate a
a -> b : back
@enduml

http://www.plantuml.com/plantuml/png/LSr12i9050FG_Jz5n6Nn0YwaLybqOXN_MFdpwyBJMn11b-4bPEp9oBMvxHx1kH6fvOMCLLPmE84O1kn35KTSvBvO5QUyFfa2_y9dKBPYbv_H-cm_o2yMJZSRTQ_Rwni0

This is simple to fix in puml after finding the reason.

br,

Hannu
...