Server render: !include does not work for local files
See original GitHub issueHi,
I love the extension. Thank you a lot for amazing work! However there is one problem 😞 ~!include
does not work for local files and returns an error:
Error found in diagram hello-world cannot include “style.puml” (@ Diagram Line 1, File Line 3) “!include “style.puml”” (Error)
For the sake of simplicity I’ve created two dummy files:
hello-world.puml
@startuml hello-world
!include "style.puml"
Alice -> Bob : Hello world
@enduml
style.puml
skinparam {
DefaultFontName "Fira Mono"
monochrome true
shadowing false
}
Both files are located in the same directory and the directory is configured as diagramsRoot
.
Configuration:
{
"plantuml.server": "http://plantuml.test",
"plantuml.render": "PlantUMLServer",
"plantuml.diagramsRoot": "docs/diagrams/src",
"plantuml.exportOutDir": "docs/diagrams/out"
}
Note: "http://plantuml.test"
is simply locally running PlantUML Server (in Docker container).
For some reason the problem does not exist for remote files, e.g. !include https://raw.githubusercontent.com/RicardoNiepel/C4-PlantUML/release/1-0/C4_Container.puml
works perfectly fine.
I have tried absolute and relative file path. Nothing works 😢
Extension information copied from VSCode:
Name: PlantUML
Id: jebbs.plantuml
Description: Rich PlantUML support for Visual Studio Code.
Version: 2.12.0
Publisher: jebbs
If you need any details, just let me know. Thank you a lot!
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (6 by maintainers)
Things need to be corrected in my former post: It’s
414 URI Too Long
, not 413.POST
support will likely solve most problems. But a lot if things need to be done, especially aninclude
processor who behaves exactly like theplantuml.jar
.Please update to latest.