runceel / plantumlpreview

MIT License
15 stars 6 forks source link

Preview only shows empty square #22

Closed valera-g closed 5 years ago

valera-g commented 7 years ago

Hi,

I've setup all env variables and ensured PlantUML runs from command line correctly. Unfortunately preview only shows empty rectangle instead of expected rendered diagram.

Example code:

@startuml
skinparam style strictuml
class Object {
}
@enduml

Command used in cmd: java -jar "%PLANTUML_JAR%\plantuml.jar" plugin-lifecycle.plantuml

Result PNG: plugin-lifecycle

Screenshot of the VSC: capture

Any idea what can be wrong?

Thank you, Valera.

runceel commented 7 years ago

Thank you for your feedback. I installed PlantUML and Graphiz. And install okazuki PlantUML to VSCode. Sett env variable PLANTUML_JAR and JAVA_HOME. I can write plantuml file then displayed diagram.

default
VaclavSynacek commented 7 years ago

@valera-g Set the PLANTUML_JAR to the jar, not to the directory containing the jar. I had the same mistake and got the same bad output as your screenshot. After correcting PLANTUML_JAR env variable all works fine.

@runceel Issue should be closed.

valera-g commented 5 years ago

@valera-g Set the PLANTUML_JAR to the jar, not to the directory containing the jar. I had the same mistake and got the same bad output as your screenshot. After correcting PLANTUML_JAR env variable all works fine.

@runceel Issue should be closed.

This really worked. Thanks! My bad.