hide unlinked results in error for the following code

0 votes
asked May 17 in bug by boshka (1,320 points)
retagged May 17 by boshka
this fails with error in plantuml.1.2017.13.jar
however worked fine in plantuml.1.2017.12.jar
 
@startuml aaa.svg
 
!definelong a(unlinked_handling)
participant a
participant b
participant c
 
unlinked_handling
a->b:hi
!enddefinelong
 
 
a(hide unlinked)
@enduml

1 Answer

0 votes
answered May 17 by plantuml (134,570 points)
Thanks for the feedback.

Your example should work with last beta (1.2017.14beta 6)

https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0

Tell us if it's not working for you!
commented May 19 by boshka (1,320 points)
This simple example fails in 1.2017.14beta 6:

@startuml
    !definelong test_me()
        a->b:test
    !enddefinelong
    test_me()
@enduml


Result SVG is:
@startuml
a->b:test
()
Syntax Error?
Did you mean:
(-)
commented May 19 by plantuml (134,570 points)
When there are no argument in a macro, you should use it that way:
@startuml
!definelong test_me
    a->b:test
!enddefinelong
test_me
@enduml
Is it working better that way ?
commented May 19 by boshka (1,320 points)
Yes, this works, but it will take to update all existing diags
Could we continue to support the test_me() notation for a macro without args?

Also, when reading a code the notation test_me() will look less confusing.
commented May 19 by plantuml (134,570 points)
Ok, we'll give a try. We'll post a message here when a new beta will be ready
commented May 19 by boshka (1,320 points)
many thanks!
commented May 19 by plantuml (134,570 points)
You can try beta 7 here:
https://www.dropbox.com/s/koo42q3d9gxw288/plantuml.jar?dl=0
This has not been widely tested, so feedback welcome!

Thanks
commented May 19 by boshka (1,320 points)
thanks! worked ok for me
...