docToolchain / docToolchain

a AsciiDoc Toolchain for technical Software Documentation, focused on Software Architecture Documentation
https://doctoolchain.github.io/docToolchain/
MIT License
723 stars 226 forks source link

plantuml load_json problem #1378

Open naturzukunft opened 3 months ago

naturzukunft commented 3 months ago

i try to use the possibility to show an external json file in a class dirgram, embedded in an asciidoc file using doctoolchain.

i'm able to reference the file with include:

----
include::../../plantuml/test.json[]
----

But that is not working:

=== test json import

[plantuml, "{plantUMLDir}testJson", png]
----
@startuml

!$remote_json = %load_json("../../plantuml/test.json")

label l [
{{json
$remote_json
}}
]
@enduml
----

However, if i use the absolute path, it works:

!$remote_json = %load_json("/home/user/git/project/src/test/resources/SAMPLE_CREATE_1.json")

There is a config param plantuml.include.path, but i've no idea where to set this in doctoolchain.

Any idea ?

naturzukunft commented 3 months ago

I also reported the issue here: https://forum.plantuml.net/18724/error-using-plantuml-%25load_json-in-doctoolchain?show=18725#c18725

I'm using docToolchain V3.3

The question is now, why is doctoolchain using version v1.2023.5 of PlantUML and/or is it possible to change the plantUml Version ?

Other question is, how/who is resolving this path ;-)