adrianvlupu / C4-Builder

This is a documentation builder. You feed it .md and .puml and it exports a site, pdf, or a markdown with navigation.
https://adrianvlupu.github.io/C4-Builder/
MIT License
563 stars 93 forks source link

"Unknown variable $label" error during the generation #12

Closed ibeketov closed 4 years ago

ibeketov commented 4 years ago

Hello, I have an "Unknown variable $label" error during the generation of the diagram. It seems that something is wrong in the C4.plum $getPerson. Please see the attached screen.

How to reproduce:

adrianvlupu commented 4 years ago

Hi, this happens because of the PlantUML version.

Try to generate a diagram with only

@startuml
version
@enduml

Check the version. Most likely you are generating diagrams using the local jar file and the latest version of C4-PlantUML breaks because it supports the online plantuml server (1.2020.07).

Run config again and choose your version. Also, inside the diagrams, change the line

!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/latest/...

to

!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/1.2019.09/...
Whax commented 4 years ago

Hi,

first thanks for your work.

Unfortunately, I have the same problem here

plantuml -v
(0.000 - 481 Mo) 466 Mo - PlantUML Version 1.2020.07
@startuml
!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/1.2020.07/C4_Container.puml
@enduml

image

ibeketov commented 4 years ago

!include https://raw.githubusercontent.com/adrianvlupu/C4-PlantUML/1.2019.09

Thank you @adrianvlupu for your work and for help with the issue. The issue with a local rendering for plantuml v1.2019.09 was resolved by using the above-mentioned link. @Whax try to use the link above.