runceel / plantumlpreview

MIT License
15 stars 6 forks source link

command 'extension.previewPlantUML' not found #18

Closed jaemyoun closed 6 years ago

jaemyoun commented 7 years ago

The command 'PlantUML Preview' did not work. Other commands also are same.

The vscode is running on Ubuntu 14.04. The environment is follow: JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/jre PLANTUML_JAR=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/plantuml.jar GRAPHVIZ_DOT=/usr/bin/dot

Any one help me?

runceel commented 7 years ago

Can you execute plantuml.jar at command line?

jaemyoun commented 7 years ago

@runceel The command line only works with absolute path of plantuml.jar.

$ java -jar plantuml.jar -verbose a Error: Unable to access jarfile plantuml.jar $ java -jar $JAVA_HOME/lib/plantuml.jar -verbose a (0.000 - 240 Mo) 234 Mo - PlantUML Version 8050 ...

runceel commented 7 years ago

OK.

Could you try this.

$JAVA_HOME/bin/java $PLANTUML_JAR -verbose a

okazuki PlantUML execute this command.

jaemyoun commented 7 years ago

@runceel The -jar option is needed.

$ $JAVA_HOME/bin/java $PLANTUML_JAR -verbose a Error: Could not find or load main class .usr.lib.jvm.java-8-openjdk-amd64.jre.lib.plantuml.jar $ $JAVA_HOME/bin/java -jar $PLANTUML_JAR -verbose a (0.000 - 240 Mo) 234 Mo - PlantUML Version 8050 ...

runceel commented 7 years ago

hmm....

Could you set OKAZUKIUML_DEBUG=1 env value. Then also, Execute PlantUML Preview command.

Please tell me error message detail.

derchirurg commented 7 years ago

@runceel Where is the log stored?

runceel commented 7 years ago

Error message appear to VSCode message area.