-
-
Notifications
You must be signed in to change notification settings - Fork 483
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
Eclipse Layout Kernel and version 1.2024.6 #336
Comments
I don't have a solution (yet), but found the same issue with the plantuml plugin for IntelliJ --> esteinberg/plantuml4idea#359 (comment) While investigating the issue, I stumbled across this post in the plantuml forum --> https://forum.plantuml.net/18998/elk-dont-work And I can confirm what they wrote (for the IntelliJ plugin atleast). When doing a sequence diagram with ELK, it works, when doing a simple class diagram, it doesn't. As I believe this has nothing to do with the plantuml-server nor with the IntelliJ plugin, I'll open an issue in the main repository. |
This happens because ELK isn't used for sequence diagrams—we have our own internal layout engine for those.
Unfortunately, we're stuck with this error message. I think only some people from the ELK team could explain what's happening, as everything works fine when we use the JAR directly. Maybe you can give them a call :-) |
On second thought, we're trying this: 185d5f1 |
Imho, adding the dependencies will not work as otherwise, you'd get a ClassNotFoundException. In the stacktrace you see elk core as part of it. Before PlantUML contained Elk, you did get a ClassNotFoundException in the IntelliJ plugin which was replaced by the InvocationTargetException when I added the Elk dependencies manually to it. I, however, don't know for sure for the server. But thanks for the info with the sequence diagram. I didn't know that. |
It seems to me that the lastest versions of ELK don't work with their service loader mechanism assuming a flat class loader. I've proposed a fix here eclipse-elk/elk#1109 - let's see what the feedback is going to be. In the meantime, it might be possible to manually register the layout as described here: eclipse-elk/elk#859 I managed to get a similar setup working when trying out the IntelliJ AsciiDoc plugin (which also uses a URL class loader) by patching a JAR like this: https://github.com/ahus1/elk-patched-for-plantuml |
That's great! |
Starting from version 1.2024.6, the Eclipse Layout Kernel (ELK) is now integrated into the main library.
This theoretically means that the following diagram should work out-of-the-box:
While this works perfectly when running the JAR directly, an issue arises when using the webserver, resulting in the following stack trace:
Any insights on what might be causing this issue?
The text was updated successfully, but these errors were encountered: