Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddBoundaryTag not working with PlantUML 1.2025 #385

Open
cmanique-sn opened this issue Feb 17, 2025 · 5 comments
Open

AddBoundaryTag not working with PlantUML 1.2025 #385

cmanique-sn opened this issue Feb 17, 2025 · 5 comments

Comments

@cmanique-sn
Copy link

Hello,

I have some diagrams in which boundaries are being customized, i.e.:

AddBoundaryTag(893196ca3513154cc642197d, $bgColor="#c9d7f51A", $borderColor="#8c96ab", $fontColor="#8c96ab")

Up to PlantUML 1.2024.8 this works as expected:

Image

With PlantUML 1.2025, the following is observed:

Image

There's nothing really pressuring the move to 1.2025, but would like to raise the issue as this really breaks layout, and the verification is pretty much manual.

Thanks

@kirchsth
Copy link
Member

Hi @cmanique-sn,

based on #386 I opened the theme,md page and saw the description and legend is not displayed at all. I have to check it.

Image

Related to your sample: Can you please describe your finding in more details (that I don't oversee one point) and add a source sample that I can try to reproduce/check all points after my fixes?

for me it looks like that

  • the boundary background color is lost,
  • the boundary font color is lost

Did I oversee something?

Or do you also mean that the layout is changed too? (Or is it related to changed data?)

Thank you
Helmut

@kirchsth
Copy link
Member

I checked the not working image, and it looks like a cached image of an older temporary not working PlantUML server, and I assume it will work at least in 5 days.
E.g. if you follow the linked image then the editor is opened and it draws the wrong image, but if

  • the svg is opened then the image is correct
  • or add a space in the source then the image is correct too
    And in both cases the cache is not used anymore:

I checked the file on my machine with following jar files and all was working:

  • plantuml-mit-1.2025.0.jar
  • plantuml-mit-1.2025.1.jar
  • plantuml-mit-SNAPSHOT.jar

@kirchsth
Copy link
Member

kirchsth commented Feb 22, 2025

The problem can be reproduced with following sample:

  • 2024.7: is green - correct
  • 2025.0: is gray - wrong
@startuml
!include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4_Container.puml

AddBoundaryTag("v1", $bgColor="lightgreen", $fontColor="green", $borderColor="green")

System_Boundary(c1, "Internet Banking", $tags="v1") {
}
@enduml

based on that I can create different preproc files (my file is called test.puml) and generated both with v.1.2025.0:

md 2024.7
java -jar plantuml-mit-1.2024.7.jar -preproc -o 2024.7  test.puml
md 2025.0
java -jar plantuml-mit-1.2025.0.jar -preproc -o 2025.0  test.puml

java -jar plantuml-mit-1.2025.0.jar 2024.7\Test.preproc
java -jar plantuml-mit-1.2025.0.jar 2025.0\Test.preproc

==> the intermedia file "2025.0\Test.preproc" is the "problem/difference" and therefore a gray image is created.
In detail the inserted break (left side is 2025.0\Test.preproc)

Image

I created an entry in Forum

@cmanique-sn: did I found your problem? Or does the other tags work for you?

@cmanique-sn
Copy link
Author

@kirchsth thanks for the investigation.
Your test.puml 2024.7 vs 2025.0 fully reproduces my issue.

@kirchsth
Copy link
Member

Hi @cmanique-sn,

the latest PlantUML version (v1.2025.2beta3) has a fix for the problem.
Can you please download it and try it with your files too?

Thank you
Helmut

(For me the colors are OK now, I have only the feeling that the png "fonts" are not so "clean" anymore but this could be a wrong impression)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants