Teoz wrong note position after array

0 votes
asked Nov 20, 2018 in Bug by anonymous

Hello,

There seems to be a bug as note is not align into same level as arrow before it. Having note first works as workaround except for "return" which throws error after "note"

@startuml
!pragma teoz true
participant Bob
participant Alice

note right of Alice: NOTE
& Bob -> Alice : Hello

Bob -> Alice : Hello
/ note right of Alice: NOTE


Bob -> Alice ++ #red: hello
return Hello
/ note right of Alice: Right
/ note left of Bob: Left


'This doesn't work:
'Bob -> Alice ++ #red: hello
'note right of Alice: Right
'& return Hello

@enduml

PlantUML diagram

br,
Hannu

1 Answer

0 votes
answered Nov 21, 2018 by plantuml (204,600 points)
Thanks for the feedback.

This should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you!
commented Nov 29, 2018 by anonymous
Hi,
With latest beta:

Bob -> Alice : Hello
/ note right of Alice: NOTE

Here note is still not aligned to same height as arrow.

br,
Hannu
commented Feb 21 by anonymous
Hi,
This illustrates 4 different issues.

http://www.plantuml.com/plantuml/png/VP0zJyCm48Pt_ueNLOg8gWRnCMLe2nCg8mC3Od3gInt9yI5_TE3Nuno1AWkZx_oyzzpjOz8XvT6fgy-WJwD68lv22fdK4tVORF7eXYEXHJ-4c5GrlqlZXNmfHpgoDyfp8eJXP5EBwzjwBaDtVAOPRPf67RGNzi3MjtWUr0s4TDGdS8-fNmBkQhnQpiwW8qGzJX_EvA3ZJzP4LWYKSl2N59alCHB_NypiLrZHMjAoOS7lQxnP2WJ35D6vJ91pxShinN7MQwocTWjBph6wY5LofStxAf3vsFwkzr2y_cnsOh0dR_BelW40

@startuml
!pragma teoz true
Bob -> Alice : first
& Alice -> Ken : second
note right: (1) second above first
...
Jane -> John: Hi
/ note left of Jane: (2) Should be same level as first Hi
& return Hi
/ note right of John: (2) Should be same level as second Hi
...
note right of Alice: (3) Where does blue start?
& Bob -> Alice ++ #blue: hello
return Hi
& Ken -[#red]> Jane: (4) Same level?
...
@enduml

br,
Hannu
commented Feb 22 by plantuml (204,600 points)
Thanks for the feeback.
There are indeed several bugs, which should be fixed in last beta http://beta.plantuml.net/plantuml.jar

There are also some syntax changes, so your example has been rewritten as:

@startuml
!pragma teoz true
Bob -> Alice : first
& Alice -> Ken : second
note right: (1) second above first
...
Jane -> John: Hi1
note left: (2) Should be same level as first Hi
return Hi2
note right: (2) Should be same level as second Hi
...
Bob -> Alice ++ #blue : hello
note right: (3) Where does blue start?
return Hi
& Ken -[#red]> Jane: (4) Same level?
...
@enduml

Tell us if it's not working for you or if you find other issues!
Thanks again
commented Mar 6 by anonymous
edited Mar 6
Hi,
I think this is still not working correctly.

@startuml
!pragma teoz true
participant Bob
participant Alice
participant Ken
participant David
Bob -> Alice : hello1
& Alice -> Ken : hi1
note right of David : Should be same level as "1"

Bob -> Alice : hello2
& Alice -> Ken : hi2
note right : This is correct level, but wrong location

Bob -> Alice : hello3
& Alice -> Ken : hi3
' workaround :
& Ken -[#hidden]> David :
note right : This is better but not perfect

Bob -> Alice : hello4
& Alice -> Ken : hi4
' next line causes dump
'& David -[#hidden]> David :
note right : Remove comment from previous line
@enduml

First note right of David should be at same level as hi1/hello1
Previously / before note made some trick.

Second note is in right level, but I would that to be located right of David.

Third sample is workaround. It is bit better but not exactly the same as second.

Fourth sample will cause dump when "workaround" is used.
& David -[#hidden]> David :

br,
Hannu
commented Mar 15 by Hannu
Hi,
Today this seems to work as expected.
& before note is the solution.

@startuml
!pragma teoz true
participant Bob
participant Alice
participant Documentation as doc

autonumber
Bob -> Alice: Hello
& note right of doc : %autonumber% Bob meets Alice
@enduml

br,
Hannu
...