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

Preview current diagram no longer working #580

Open
ponaroth opened this issue Apr 8, 2024 · 5 comments
Open

Preview current diagram no longer working #580

ponaroth opened this issue Apr 8, 2024 · 5 comments

Comments

@ponaroth
Copy link

ponaroth commented Apr 8, 2024

I see a blank when I used the preview current diagram feature. I need to hover over the error message to see the preview. Please check the screenshots attached.
Screenshot 2024-04-08 at 9 48 08 AM
Screenshot 2024-04-08 at 9 48 19 AM

@j-lebek
Copy link

j-lebek commented Apr 12, 2024

A downgrade to 2.17.6 made the extension work again for me.

@mkfrey
Copy link

mkfrey commented Apr 19, 2024

For me it's working fine with OpenJDK 21.0.2 2024-01-16.

@FunJim
Copy link

FunJim commented Jul 2, 2024

I encountered the same issue, but I managed to resolve it. It seems like that the new version of the extension now locates java in the $PATH and the incompatible one(such as Java 8 in my case) will cause this issue.

To fix this, ensure the latest OpenJDK is installed and prioritized in the $PATH. Add the following to your .bashrc or .zshrc:

export JAVA_HOME=$(/usr/libexec/java_home) # Returns, for example, /opt/homebrew/Cellar/openjdk/22.0.1/libexec/openjdk.jdk/Contents/Home
export PATH=$JAVA_HOME/bin:$PATH

@mcstumpfi
Copy link

Al least you have a error-message.
On my Win10 the Preview ist showing nothing. Just a black background. Can't mark anything to make it visible or something to hover for some information.
Downgraded to 2.17.6 without any change.
On top of that I can't export any diagram to pdf, svg or png. But that is a another topic.
Didn't worked before and after I installed Java 8.

Using a PlantUML Previewer by Mebrahtom Guesh atm, but with bigger diagrams you will problems with font-Size and scolling horizontally.

@mcstumpfi
Copy link

Al least you have a error-message. On my Win10 the Preview ist showing nothing. Just a black background. Can't mark anything to make it visible or something to hover for some information. Downgraded to 2.17.6 without any change. On top of that I can't export any diagram to pdf, svg or png. But that is a another topic. Didn't worked before and after I installed Java 8.

Using a PlantUML Previewer by Mebrahtom Guesh atm, but with bigger diagrams you will problems with font-Size and scolling horizontally.


Nevermind. installed the wrong java 8 packages. After installing openjdk8u422-b05 it is working :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants