plantuml-stdlib / C4-PlantUML

C4-PlantUML combines the benefits of PlantUML and the C4 model for providing a simple way of describing and communicate software architectures
MIT License
6.33k stars 1.1k forks source link

error a001 on all diagrams #323

Closed gsantandrea closed 1 year ago

gsantandrea commented 1 year ago

Hello, commit a0e50963 seems to introduce a bug so that diagrams are not rendered and it returns an error. https://forum.plantuml.net/17566/global-%24variable-default-variable-produces-error-a001

For example: @startuml !include https://raw.githubusercontent.com/plantuml-stdlib/C4-PlantUML/master/C4.puml

@enduml

The problem does not appear on online editor, only in local PlantUML server instances or with PlantUML VSCode plugin (because uses local PlantUML server by default).

james-airbox commented 1 year ago

Also having this issue. Switching to importing the relative local files for now.

-DRELATIVEINCLUDE="." could be used but I couldn't get plantuml in vscode to pick it up so edited the C4*.puml files manually.

kirchsth commented 1 year ago

Hi @gsantandrea and @james-airbox,

@gsantandrea: thank you for the fix.

the fix is merged, master should work again.

@james-airbox: For Visual Studio Code, add the following to your settings.json:

"plantuml.jarArgs": [
  "-DRELATIVE_INCLUDE=."
]

BR Helmut