Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relative path cannot be used for -config option because -Duser.dir is no longer set #586

Open
skystar0227 opened this issue Jun 12, 2024 · 1 comment

Comments

@skystar0227
Copy link

Thank you for this greate extension.

According to the following comment, relative path can be specified for -config thanks to -Duser.dir.

#152 (comment)

However, this won't work currently.
I think becaluse the following update removed the code which set -Duser.dir.

3a4d003

Could you please restore the code so that relative path for -config get working?

@scalarion
Copy link

scalarion commented Oct 22, 2024

I have the same problem:

"plantuml.jarArgs": [
    "-config",
    "<absolute path to file>/plantuml.iuml",
    "-Playout=smetana",
],

works but

"plantuml.jarArgs": [
    "-config",
    "plantuml.iuml",
    "-Playout=smetana",
],

brings following exception:

Exception in thread "main" java.io.FileNotFoundException: plantuml.iuml (No such file or directory)
at java.base/java.io.FileInputStream.open0(Native Method)
at java.base/java.io.FileInputStream.open(FileInputStream.java:213)
at java.base/java.io.FileInputStream.(FileInputStream.java:152)
at java.base/java.io.FileInputStream.(FileInputStream.java:106)
at java.base/java.io.FileReader.(FileReader.java:60)
at net.sourceforge.plantuml.Option.initConfig(Option.java:575)
at net.sourceforge.plantuml.Option.(Option.java:324)
at net.sourceforge.plantuml.Run.main(Run.java:131)

In use a settings.json in my workspace folder

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants