kroki icon indicating copy to clipboard operation
kroki copied to clipboard

Rendering structurizr graphic with includes fails

Open Ka55i0peia opened this issue 2 years ago • 0 comments

Watching the payload of sphinx->kroki and a quick view into the (nice) code (btw) leads me to create this issue

In structurizr dsl it is possible to spread a complex graphic/model into separate file using an include.

.. kroki::
   :type: structurizr
   :filename: workspace.dsl
   :options:
      view-key: some-view

with a workspace.dsl like this

!include some_file.dsl

workspace {
    //...
}

Rendering this graphic causes kroki server to fail with

java.lang.RuntimeException: some_file.dsl could not be found

This error message is correct, since the payload of the graphic contains only the workspace.dsl (not the included file).


By now in my eyes two paths are not worse to investigate further:

  • send several files to kroki
  • do the code embedding on sphinx-contrib/kroki side and send as one payload object (nothing more magic seams to be done by the include statement in structurizr dsl)

Does someone (maybe @hason as author, @pypamart as contributer) has a feeling about one over the other?

Ka55i0peia avatar Feb 13 '23 14:02 Ka55i0peia