plantuml.jarArgs only works with absolute path
See original GitHub issueHi,
many thanks for this great plugin.
However, I seem to be unable to get my project specific plantuml.config into the plugins preview renderer without using an absolute path.
The example says I should use { "settings": { "plantuml.jarArgs":[ "-config", "plantuml.config" ] } }
But where should the file then be located?
I tried
- copying the file to the workspace root
- copying the file to the diagram source folder
and some even more obscure paths. But all I get is a PathNotFoundException
Error found in diagram Firmware Update
Exception in thread "main" java.io.FileNotFoundException: plantuml.config (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.(FileInputStream.java:138)
at java.io.FileInputStream.(FileInputStream.java:93)
at java.io.FileReader.(FileReader.java:58)
at net.sourceforge.plantuml.Option.initConfig(Option.java:367)
at net.sourceforge.plantuml.Option.(Option.java:220)
at net.sourceforge.plantuml.Run.main(Run.java:79)
Might this be related to this comment?
Ultimately, I think, it would be nice, if we could use ${workspaceFolder}
in workspace settings as well as the within plantuml config file itself to reference includes within the projects directory structure.
!include ${workspaceFolder}/includes/macros.wsd
!include ${workspaceFolder}/includes/skinparams.wsd
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (9 by maintainers)
Top Results From Across the Web
call it from your script using command line - PlantUML
An absolute path will ensure that all images are output to a single, specific, directory. ... Unfortunately this option works only with local...
Read more >PlantUML - Visual Studio Marketplace
Extension for Visual Studio Code - Rich PlantUML support for Visual Studio Code. ... Don't depend on it, use it only when it...
Read more >PlantUML extension for Visual Studio Code on Windows only ...
The GRAPHVIZ_DOT environment variable is specified in File > Preferences > Settings > Plantuml: Command Args. Click on the link to "Edit in ......
Read more >vscode-plantuml - Bountysource
I'm using the PlantUML 2.13.6 extension. When I initially select Preview for my puml file, it shows the diagram just fine. Then, when...
Read more >emacs/plantuml-mode - plantuml-mode - Gitea: Git with a cup of tea
(let* ((cmd-list (append plantuml-java-args (list (expand-file-name plantuml-jar-path)) plantuml-jar-args arguments)). Prepare for v1.1.1. 6 years ago.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Since the setting is named as
jarArgs
, they are processed byplantuml.jar
. Except theCWD
, anything I do is excess, even dangerous (to other args other than-config
). It’s betterplantuml.jar
could implement these logic.Please disregard the above - oddly enough, restarting VSCode and re-installing the plugin seemed to have solved the issue