syntax error on group + repeat after 8012 upgrade

0 votes
asked Dec 8, 2014 in Bug by eyim1 (120 points)

After 8021 upgrade, the following code is causing a syntax error:

@startuml

Group External Communication Thread

repeat

:<b>Handle External Rx Event</b>;

:<b>Handle External Tx Event </b>;

Repeat while (repeat loop)

End group

@enduml

 

1 Answer

+1 vote
answered Dec 8, 2014 by plantuml (294,960 points)

The syntax for Activity beta has slightly changed.

You should use now :

@startuml
partition "External Communication Thread" {
repeat
  :<b>Handle External Rx Event</b>;
  :<b>Handle External Tx Event </b>;
repeat while (repeat loop)
}
@enduml

We hope that it's not a big issue for you.

commented Dec 8, 2014 by eyim1 (120 points)
Since I used "group" a lots, I guess I cannot upgrade it.  

Do you have any plan to support "group" again as a backward compatibility support?
commented Dec 8, 2014 by plantuml (294,960 points)
Ok, we will restore the "group" syntax in next release (will be this week).
However, even if both syntaxes (group/partition) will be supported, we won't document the old "group" syntax.
And you should consider migrating to the new syntax, because some days the "group" syntax might be removed again.
commented Dec 8, 2014 by eyim1 (120 points)
Thanks so much.  Only reason I used "group" over "partition" was it has a cleaner block syntax by using "group" ... "end group" which I thought a theme of activity-beta syntax.
Any plan to remove the curly brace from partition syntax?
"Partition"... "end partition" may look cleaner in my opinion.
commented Dec 10, 2014 by plantuml (294,960 points)
This has been restored in V8014.
Unfortunatly, the use of curly brace makes the parsing easier, so the plan is more to use braces than to remove them :-)
commented Dec 10, 2014 by eyim1 (120 points)
Thanks so much for the quick turnaround.
...