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

AddNodeTag in C4_Deployment throws an error #334

Closed
wemu opened this issue Jan 25, 2024 · 5 comments
Closed

AddNodeTag in C4_Deployment throws an error #334

wemu opened this issue Jan 25, 2024 · 5 comments
Assignees
Milestone

Comments

@wemu
Copy link

wemu commented Jan 25, 2024

Hello

I've created a C4_Deployment diagram that used to work. But newer PlantUML Versions can no longer render it - it seems the AddNodeTag statement changed.

The minimal version:

@startuml
!include <C4/C4_Deployment>

!include <tupadr3/devicons/angular>
!include <tupadr3/devicons/java>
!include <tupadr3/devicons/postgresql>
!include <tupadr3/govicons/users>
!include <tupadr3/font-awesome-5/server>

title Deployment

AddNodeTag(iscservice, $borderColor="green", $legendText="bestehende Infrastruktur")

Node(zone, "Zone", $tags=iscservice) {
    Container(spas, "SPA", "Angular", "Web-Applikation", "Browser", $sprite="angular")
}

SHOW_LEGEND()
@enduml

output on plantuml.com:
https://www.plantuml.com/plantuml/png/VT1DQ_Cm30Vmkpz5dl0S4bZ9OTrjAStIiWr6DsYXi4jnOpNpwbYP9BTxOTzz2IjqXr9VREIV_i8UisYIq3Zrp_hA1GFHTJdCok5g0gt3ZmQyZDIVImcjDdIP6TZP2ZrdsjV1QHgTCwzwfy-25bbg0dvpfrYD1nOOY4-93NePw3qmDZ2uoZgs0nef9LOSHCUdAAKAOsPeOA7hn7BLIrl1HVH_ZMI0IdH8ULmJW8-xgeCQl5d0k-Jn6bZW1Nmt-DvlIBDGs4gWE5MgZqm-qNT9yJDww7j5rvmVPwJHbugwLQ8NRJrGmgtcpi-VYhZRYj-Fx8zBM0-AjdLsgyMYxqitX7i6wdEv9IkGn_hGaAflfUPtZylLm_HsEfiagHg3Dw5nFm00

same happens in asciidoctorj-diagram. Once the AddNodeTag is removed the rendering is valid.

error shown:

AddNodeTag(iscservice, $borderColor="green", $legendText="bestehende Infrastruktur")
  !$type=$type+$techn
  $addElementTagInclReuse("node", $tagStereo, $bgColor, $fontColor, $borderColor, $shadowing, $shape, $sprite, $type, $l ...
^^^^^
 Function not found $addElementTagInclReuse
@kirchsth
Copy link
Member

thank you for the finding, I will fix

@kirchsth
Copy link
Member

@wemu: I fixed it in my extended branch, can you please test it (details see MR #335).

Thank you and best regards
Helmut

@kirchsth kirchsth added this to the v2.9.0 milestone Jan 27, 2024
@wemu
Copy link
Author

wemu commented Jan 28, 2024

awesome!

I'll try to verify this. But as I'm using the asciidoc plugin in IntelliJ ,and there the asciidoc-diagrams and there the plantuml integration and there c4 integration, I'm not quite sure how to? Would changing the include statement in the diagram to point to a local copy of the extended branch be enough?

@kirchsth
Copy link
Member

Yes, if you use following include path then it should work

!include http://raw.githubusercontent.com/kirchsth/C4-PlantUML/extended/C4_Deployment.puml

@wemu
Copy link
Author

wemu commented Jan 29, 2024

hello

I tried to change the include and the broken deployment diagram works! So that fix works for me!

thanks a lot!

kirchsth added a commit that referenced this issue Feb 3, 2024
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