qjebbs / vscode-plantuml

Rich PlantUML support for Visual Studio Code.
MIT License
1.1k stars 160 forks source link

Missing Java is not reported as error #550

Open Muph0 opened 1 year ago

Muph0 commented 1 year ago

I just installed plantuml on a new computer and it took me a while to realize that I have no java installed because the extension just didnt show any errors. It even said that diagram rendering was successful.

image

But I have no Java installed:

sh-5.2$ java --version
sh: java: command not found
sh-5.2$ dot --version
dot - graphviz version 8.0.5 (20230430.1635)
sh-5.2$ which dot
/c/Program Files/Graphviz/bin/dot
HunterZ commented 1 month ago

I think I may be getting bit by this as well. I thought maybe the problem was that the diagrams were unnamed, because that's the only feedback I get.

The output window shows only this: 1 diagrams, 0 files exported in 0.171 seconds:

Update: Yes, installing a JRE fixed it.