weirongxu / plantuml-previewer.vim

Vim / Neovim plugin for preview PlantUML

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

plantuml_previewer gives message it is opening preview, and then nothing happens

anoduck opened this issue · comments

I have tested the open_browser plugin, and it works. Java is located in my path, and I am no longer receiving the error message concerning the java command. The viewer path has been modified away from using the same directory as the plugin, and is currently set to my home folder, a place I should have more than ample permissions.

Still get nothing except a message stating the preview is open.

Same for me! I've got only the PlantUML canvas in my browser without the diagram.
I've wrote the whole way what I've done on Vim Stack Exchange https://vi.stackexchange.com/questions/39295/vim-neovim-plantuml-preview-didnt-work

Same for me! I've got only the PlantUML canvas in my browser without the diagram. I've wrote the whole way what I've done on Vim Stack Exchange https://vi.stackexchange.com/questions/39295/vim-neovim-plantuml-preview-didnt-work

@MannyFay What is the result of your :echom g:plantuml_previewer#plantuml_jar_path? do you have brew install plantuml installed? You need to make sure the jar file exists when you configured g:plantuml_previewer#plantuml_jar_path

:echo g:plantuml_previewer#plantuml_jar_path returns correctly /home/user/bin/plantuml.jar for me at least.

I have enabled debug, but it does not provide any additional output.

Interestingly, although I am not running mac, I am running a unix, OpenBSD. Of coarse, all required packages are installed, and it has been verified that the open-browser.vim plugin is working successfully.

@anoduck Could you try :PlantumlSave demo.png and :PlantumlSave demo.svg and check the output file?

There is no output file. Neither in $CWD or in viewer_path = tmp. This potentially might be a problem diagnosing what is going on.

Just FYI, I am using the same as in my org-orgzly repo.

Yes, I've done brew install plantuml.
If I do in Vim :echo g:plantuml_previewer#plantuml_jar_path it answers /opt/homebrew/Cellar/plantuml/1.2022.13/libexec/plantuml.jar . If I do echo g:plantuml_previewer#plantuml_jar_path it answers with g:plantuml_previewer#plantuml_jar_path.
What should be /home/user/bin/plantuml.jar for a path on a Mac - maybe it's done with a symlink to the correct directory...

I have it!! Just don't install Java with homebrew! Take it from Oracle, install it -> Bam ! Nice PlantUML diagrams in my browser with your plugin :)
Thank's for spending your time helping me !!!
https://www.oracle.com/java/technologies/downloads/#jdk19-mac

@MannyFay Are you telling me the current Java release is 19? Jeez Louis...I am behind on my jdk releases.

@weirongxu The ports tree features JDK-17. So, I am going to install that and make appropriate changes to my aliases. Then see if that fixes the issue. I was previously running JDK-11.

@MannyFay You earn cool points for your expressionary , "BAM!".

Well, that done did it for me as well. Everything appears to work, just need to change my configuration of viewer path.

@weirongxu No, joke. That did it for me. Works like butter. Super cool to get this working finally. It is going to make creating diagrams a much easier process.

@MannyFay Thanks for solving this mystery for me!