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

ELK integration not working #359

Open
jcunliffe1 opened this issue Aug 5, 2022 · 8 comments
Open

ELK integration not working #359

jcunliffe1 opened this issue Aug 5, 2022 · 8 comments

Comments

@jcunliffe1
Copy link

copied plantuml and elk-full jars to folder and pointed plugin to it, then got:

image

https://plantuml.com/de/elk
https://github.com/plantuml/ELK-demo

@krasa
Copy link
Collaborator

krasa commented Aug 5, 2022

does it work from command line?

@jcunliffe1
Copy link
Author

jcunliffe1 commented Aug 5, 2022

yep - the demo project works

@jcunliffe1
Copy link
Author

maybe make it low prio - it's not that great yet

@alersrt
Copy link

alersrt commented Jul 13, 2023

Despite this is in Alpha stage, it's still important part of PlantUML project and allows to get much more better results in some cases.

@SirNoName2705
Copy link

I have found a Workaround. I could not get it to work using my own plantuml jar. But if you start plantuml -picoweb:8000:127.0.0.1 with your own installation and then link the url in the plugin settings it works.

image
I have renamed the old installation to plantuml_old.jar.
image

Normally you would get the elk-full.jar from this website: https://plantuml.com/de/elk
But it would not download for me.
If you have the same problem go to: http://beta.plantuml.net/
And then download it manually.

I do not know why this is still a "Beta" feature. Because Elk is so much better that it makes plantuml even viable for using in my project. Without it, you cannot read complex diagrams that are auto-generated.

@SirNoName2705
Copy link

I just realized that then the export feature for tikz etc. will not work.
I do not understand why the plugin will show that error even if I add the elk-full.jar in the same directory where the plantuml.jar is located. Even if I put it in the plugin directory.

I hope this will be addressed soon. I really like the plugin.

@StephanPirnbaum
Copy link

PlantUML v1.2024.6 added a dependency to Elk. However, Elk diagrams are still not working in this plugin although it uses v1.2024.7. When using the bundled jar, it shows a ClassNotFoundException for Elk classes, so I believe transitive dependencies are not packaged in this plugin. When using the EPL distribution from https://plantuml.com/de/download the InvocationTargetException arises.

Are there plans to fix this?

@ahus1
Copy link

ahus1 commented Dec 23, 2024

I tried to make the AsciiDoc plugin for IntelliJ work with ELK, and I found that the exception is caused by a service loader mechanism that won't work in a hierarchical class loader setup.

See eclipse-elk/elk#1109 for a proposed fix. It might be possible to manually register the layout until a ELK fix is released. That manual registration would probably need to land in PlantUML.

Once I started to build a JAR with the fix, it started to work: https://github.com/ahus1/elk-patched-for-plantuml

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

6 participants