8000 Conversion "kgraph" to "lgraph" fails with cloning error · Issue #1138 · eclipse-elk/elk · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Conversion "kgraph" to "lgraph" fails with cloning error #1138

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

Open
mqrzbw opened this issue Apr 3, 2025 · 1 comment
Open

Conversion "kgraph" to "lgraph" fails with cloning error #1138

mqrzbw opened this issue Apr 3, 2025 · 1 comment
Labels
bug Erroneous behaviour.

Comments

@mqrzbw
Copy link
mqrzbw commented Apr 3, 2025

*The attached MRE fails at
"LGraph l1 = new ElkGraphTransformer().importGraph(g);" with the error: "Couldn't clone property 'org.eclipse.elk.nodeLabels.padding'.

The code fails in the call to "computeInsideNodeLabelPadding" method on the line:
"NodeContext nodeContext = new NodeContext((GraphAdapters.GraphAdapter)null, node);"
That code calls for a clone of nodeLabelPadding that fails, apparently due to the absence of a
default Pattern object.

I'm compiling using Temurin 17.0.14 on a continuously updated Windows 11 system with IntelliJ v 2024.3.5 (CE).
I'm referencing org.eclipse.elk v 0.10.0 in the pom.xml file (attached). This code also fails on Elk 0.8.1.

Attached are the java code, the pom.xml file, and the traceback report.

Thank you for your help on this.
Mike

MRE.md

pomfile.md

tracebackfile.md

@mqrzbw mqrzbw added the bug Erroneous behaviour. label Apr 3, 2025
@Eddykasp
Copy link
Contributor

I've reproduced your error by putting your code in a unit-test, however I am getting a different error, so I'll need to do some more digging.

@Eddykasp Eddykasp added this to the Release 0.10.1 milestone Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Erroneous behaviour.
Projects
None yet
Development

No branches or pull requests

2 participants
0