Using QVTo with Xtext [message #1786036] |
Tue, 24 April 2018 10:36  |
Eclipse User |
|
|
|
Hello,
I have two meta-models, A and B. B is based on an Xtext grammar, and instances of B are supposed to be saved using the Xtext syntax.
I also have two QVTo transformations, one from A to B, one from B to A. The plug-ins for A and B are deployed to the Eclipse instance in which I have defined the transformations. I'm using the Eclipse Neon release with the corresponding versions of QVTo and Xtext.
I execute both transformations using Run Configurations.
The execution of the B-to-A transformation works smoothly. Apparently, QVTo is able to use the Xtext loading mechanism for loading the textual instances of B.
The execution of the A-to-B transformation fails with the following stack trace. I even get the trace when I remove all actual transformation logic from A-to-B (which in the case of B-to-A doesn't lead to an error).
!ENTRY org.eclipse.m2m.qvt.oml 4 0 2018-04-24 16:19:22.781
!MESSAGE Operational QVT Interpreter
!STACK 0
org.eclipse.m2m.internal.qvt.oml.common.MdaException: Save model param extents diagnostic [Failed to save model extent uri=platform:/resource/path/to/example/output.B]
at org.eclipse.m2m.internal.qvt.oml.runtime.launch.QvtLaunchUtil.doLaunch(QvtLaunchUtil.java:271)
at org.eclipse.m2m.internal.qvt.oml.runtime.launch.QvtLaunchUtil.doLaunch(QvtLaunchUtil.java:211)
at org.eclipse.m2m.internal.qvt.oml.runtime.launch.QvtLaunchConfigurationDelegate$1.run(QvtLaunchConfigurationDelegate.java:60)
at org.eclipse.m2m.internal.qvt.oml.common.launch.SafeRunner$SameThreadRunner.run(SafeRunner.java:33)
at org.eclipse.m2m.internal.qvt.oml.common.launch.SafeRunner$1.run(SafeRunner.java:26)
at org.eclipse.m2m.internal.qvt.oml.common.launch.ShallowProcess.run(ShallowProcess.java:45)
at org.eclipse.m2m.internal.qvt.oml.common.launch.ShallowProcess.run(ShallowProcess.java:36)
at org.eclipse.m2m.internal.qvt.oml.runtime.launch.QvtLaunchConfigurationDelegate$3.run(QvtLaunchConfigurationDelegate.java:95)
at java.lang.Thread.run(Thread.java:745)
Am I missing something here?
Best regards,
Daniel
|
|
|
|
|
|
|
|
Re: Using QVTo with Xtext [message #1786083 is a reply to message #1786081] |
Wed, 25 April 2018 06:55  |
Eclipse User |
|
|
|
Hi
The gory-detail messages are a bit depressing, because nothing works till it all works. It is therefore worth building up construct by construct, so that you start with successes for Grammar, Grammar+MetamodelDeclaration, Grammar+MetamodelDeclaration+trivial Rule ... You then know that your latest expansion is the broken one.
(You still need the QVTo stack trace fix so that once you have it working you get sensible insight into your next more complicated problem.)
Regards
Ed Willink
|
|
|
Powered by
FUDForum. Page generated in 0.04154 seconds