closed [remove @unlinked] Cannot find color if some sub elements are not linked

0 votes
asked May 3, 2020 in Bug by bflorat (180 points)
closed Aug 24, 2021 by plantuml

Thanks again for the remove @unlinked  feature.

It works great.

Testing it, I figured out a few (non blocking) edge cases I put here for the record :

Cannot find color #0000002 (or another number) if some sub elements are not linked:

@startuml

[c]

together t{

   together x {

     [b]

   }

}

[c] -> [a]

remove @unlinked

@enduml

closed with the note: https://forum.plantuml.net/11052/remove-unlinked-components?show=14432#c14432
commented May 29, 2020 by bflorat (180 points)

For the record, here's a (successfully tested) workaround

(basically, we add a hidden component in the first level group so it always have at least one component even after the 'remove @unlinked'.

@startuml

together t{

  [void]

  hide void

  together x {

    [b]

  }

}

[c] -> [a]

remove @unlinked

@enduml

commented Aug 24, 2021 by The-Lu (49,800 points)
...