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

-output is misleading #40

Open
Kernald opened this issue Oct 1, 2019 · 4 comments
Open

-output is misleading #40

Kernald opened this issue Oct 1, 2019 · 4 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@Kernald
Copy link

Kernald commented Oct 1, 2019

The documentation of -output states:

To generate images in the specified directory

But it's not what it does. The images are in this directory hierarchy relative to the diagram source.

Let's imagine this folder structure:

.
├── input
│   └── test_graph.puml
└── output

And run plantuml -o output input/test_graph.puml. The result is incoherent:

.
├── input
│   ├── output
│   │   └── test_graph.png
│   └── test_graph.puml
└── output

Verbose log:

(0.000 - 240 Mo) 234 Mo - PlantUML Version 1.2019.11
(0.014 - 240 Mo) 234 Mo - GraphicsEnvironment.isHeadless() true
(0.015 - 240 Mo) 234 Mo - Forcing -Djava.awt.headless=true
(0.015 - 240 Mo) 234 Mo - java.awt.headless set as true
(0.015 - 240 Mo) 234 Mo - Forcing resource load on OpenJdk
(0.079 - 240 Mo) 234 Mo - Found 1 files
(0.079 - 240 Mo) 234 Mo - Working on /home/kernald/puml/input/test_graph.puml
(0.097 - 240 Mo) 233 Mo - Setting current dir: .
(0.097 - 240 Mo) 233 Mo - Setting current dir: /home/kernald/puml/input
(0.098 - 240 Mo) 233 Mo - Using default charset
(0.108 - 240 Mo) 233 Mo - Reading from test_graph.puml
(0.170 - 240 Mo) 232 Mo - Reading file: input/test_graph.puml
(0.361 - 240 Mo) 225 Mo - Compilation duration 188
(0.362 - 240 Mo) 225 Mo - Regex total/invoked/compiled 66/35/24
(0.363 - 240 Mo) 225 Mo - Matches created 25
(0.520 - 240 Mo) 219 Mo - Creating file: /home/kernald/puml/input/output/test_graph.png
(0.602 - 240 Mo) 215 Mo - Creating image 275x216
(0.651 - 240 Mo) 214 Mo - Ok for com.sun.imageio.plugins.png.PNGMetadata
(0.740 - 240 Mo) 213 Mo - File size : 6879
(0.742 - 240 Mo) 213 Mo - Number of image(s): 1
@weiyu10
Copy link

weiyu10 commented Jun 3, 2020

I meet same bug

@swmatisa
Copy link

swmatisa commented Jun 3, 2020

try plantuml -o ../output input/test_graph.puml

@arnaudroques arnaudroques added documentation Improvements or additions to documentation question Further information is requested labels Mar 21, 2023
@arnaudroques
Copy link
Contributor

Can we close this one?

@arnaudroques arnaudroques transferred this issue from plantuml/plantuml Mar 21, 2023
@Kernald
Copy link
Author

Kernald commented Mar 21, 2023

Unless either the behaviour or documentation changed, I don't think it should be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants