'together "GROUP" as GROUP' fails since plantuml-1.2023.0.jar

0 votes
asked Feb 17, 2023 in Bug by boshka (3,940 points)
Hello!

The following code fails with "Syntax Error" since plantuml-1.2023.0.jar:

together "GROUP" as GROUP #White {

        rectangle "A" as A #White{

        }

        rectangle "B" as B #White{

        }

}

Though it worked OK in plantuml-1.2022.13.jar

Could it be fixed, please?

Please see on the server: https://www.plantuml.com/plantuml/uml/AybFJot9I2rIK78FyWyDK598B5O0inIKmpCoIr8LghauYrAJInBpqdDI5PGSmGeSePBLN0fGK8kYoWcioWcBgbe0

1 Answer

0 votes
answered Feb 17, 2023 by The-Lu (65,240 points)

Hello B, and all,

Normally together is an anonymous element, as:

together {
        rectangle "A" as A #White{
        }
        rectangle "B" as B #White{
        }
}

See similar fixed issues here:

So 1.2023.0 and 1.2023.1 are impacted by changes in together.
We did a too naive implementation of together in those versions and we are going to fix this issue and restore the ability to nest together / namespace / package.I

If that can help,
Regards.

commented Feb 17, 2023 by plantuml (295,000 points)

And if you need colors, you can use this:

@startuml
rectangle " " as GROUP #white;line:white {
    rectangle "A" as A #White{
        }
    rectangle "B" as B #White{
        }
}
@enduml

commented Feb 21, 2023 by boshka (3,940 points)
Thank you, The-Lu!

Could you advise in which version it should be expected fixed?

Thanks!
commented Feb 21, 2023 by The-Lu (65,240 points)
commented Mar 3, 2023 by boshka (3,940 points)

hi The-Lu,

It still fails on plantuml-1.2023.2.jar

Also, see on the server (currently 2023.3beta4):

https://www.plantuml.com/plantuml/uml/AybFJot9I2rIK78FyWyDK598B5O0inIKmpCoIr8LghauYrAJInBpqdDI5PGSmGeSePBLN0fGK8kYoWcioWcBgbe0

commented Mar 3, 2023 by plantuml (295,000 points)
> It still fails on plantuml-1.2023.2.jar

Maybe we should be more clear: it won't be fixed.

The syntax has changed: together is an anonymous element.

You can use the other syntaxes shown in this thread
commented Mar 3, 2023 by boshka (3,940 points)
edited Mar 3, 2023 by boshka

RE:

rectangle "A" as A #White{
        }

thanks, I guess I can use here "transparent" color too, correct?

...