plantuml / plantuml

Generate diagrams from textual description
https://plantuml.com
Other
9.73k stars 881 forks source link

Stereotype won't be hidden with "hide stereotype" #1768

Closed boessu closed 1 week ago

boessu commented 1 week ago

Describe the bug The stereotypes won't be hidden with hide stereotype always if there is a stereotype style defined.

To Reproduce The following code

@startuml

hide stereotype

rectangle foo <<boo>> {
    rectangle bar <<boo>>
}

@enduml

produces in the version 1.2024.3 the following output image

The same code produces in version 1.2024.5beta1 (online at the moment) the following output: image

Expected behavior In my point of view, what version 1.2024.3 produces is the expected behaviour (hide all stereotypes, no matter how the rectangle is used).

additional context The problem only occurs if the element has no sprite symbol (e.g. rectangle <$icon> foo <<boo>> {...} doesn't have that problem). Altough it is possible that there are now plantuml-stdlib's with a bit unexpected visual behaviours in some situations (I noted the problem in the edgy lib).

The-Lum commented 1 week ago

Hello @boessu, and all,

See also similar remark or request here:

On the same topic:

PR on this same topic:

[FYI @travkin79]

Regards, Th.

travkin79 commented 1 week ago

Thanks for the report @boessu and thanks for the hint @The-Lum, I think, that's a regression coming from one of my last PRs #1587 and #1736. I'll check this case, too, and will try to fix it in an additional PR.