question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

plantuml.jarArgs only works with absolute path

See original GitHub issue

Hi,

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:closed
  • Created 5 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
qjebbscommented, Oct 10, 2018

Since the setting is named as jarArgs, they are processed by plantuml.jar. Except the CWD, anything I do is excess, even dangerous (to other args other than -config). It’s better plantuml.jar could implement these logic.

0reactions
nsainaneycommented, Sep 22, 2021

Please disregard the above - oddly enough, restarting VSCode and re-installing the plugin seemed to have solved the issue

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found