Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

hide unlinked results in error for the following code

0 votes
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
asked May 17 in bug by boshka (1,150 points)
retagged May 17 by boshka

1 Answer

0 votes
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!
answered May 17 by plantuml (126,850 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:
(-)
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 ?
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.
Ok, we'll give a try. We'll post a message here when a new beta will be ready
many thanks!
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
thanks! worked ok for me
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...