Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [MWE2] check error handling and editor problems(Don't see error message from check input file; editor shows spurious errors)
[MWE2] check error handling and editor problems [message #1703450] Fri, 31 July 2015 15:53 Go to next message
Peter Keller is currently offline Peter KellerFriend
Messages: 3
Registered: July 2015
Junior Member

I am porting an old MWE workflow to MWE2 (good job with that, btw: MWE2 is much nicer to work with). It basically works, but I am having two problems and I can't find a way around them. I'm hoping that someone on the forum can make a suggestion.

The most serious issue is that the workflow uses a script in the "check" language to verify the workflow's input. When a check fails, with MWE I get informative output like this:

4751 ERROR WorkflowEngine     - [ERROR]: <error message from readcheck> (Element: <element from model>; Reported by: -UNKNOWN-)

but with MWE2 I get this, with no hint which check actually failed to validate:

4189 ERROR Mwe2Launcher       - Problems running workflow generateXsd: Errors during validation.
java.lang.RuntimeException: Problems running workflow generateXsd: Errors during validation.
	at org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(
Caused by: org.eclipse.emf.mwe.core.WorkflowInterruptedException: Errors during validation.
	at org.eclipse.xtend.check.CheckComponent.invokeInternal2(
	at org.eclipse.xtend.expression.AbstractExpressionsUsingWorkflowComponent.invokeInternal(
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(
	at org.eclipse.emf.mwe.core.lib.Mwe2Bridge.invoke(
	at org.eclipse.emf.mwe.core.lib.AbstractWorkflowComponent.invoke(
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(
	at org.eclipse.emf.mwe2.runtime.workflow.AbstractCompositeWorkflowComponent.invoke(
	... 4 more

I am launching the workflow from the Eclipse UI (right-click, "Run As", "MWE2 Workflow"). I get this problem in Kepler, Luna and Mars. Is there something else I need to do to see the error message from check? I have simply ported StandaloneSetup from the old workflow as:

bean = org.eclipse.emf.mwe.utils.StandaloneSetup{ ... }

Is this still valid, or should I be using something else? Or maybe I need another bundle? The ones that I have currently imported are:

Require-Bundle: org.eclipse.xpand,

The other less serious issue is with including components from a different Eclipse project. I have ported MWE cartridge declarations like this (where xxx.mwe is in a different project that is declared as a required bundle):

  <cartridge file="xxx.mwe"
 ... params ...


component = @xxx {
 ... params ...

The workflow runs fine and the containing project doesn't have any errors in the Problems view, but in the Eclipse editor @xxx and the parameter names are flagged as errors with "Couldn't resolve reference to Module 'xxx'". Is there a way of sorting this out?


[Updated on: Tue, 04 August 2015 10:23]

Report message to a moderator

Re: [MWE2] check error handling and editor problems [message #1705032 is a reply to message #1703450] Tue, 11 August 2015 14:19 Go to previous message
Peter Keller is currently offline Peter KellerFriend
Messages: 3
Registered: July 2015
Junior Member
Bug submitted for this regression (failure to report which constraint has been violated):
Previous Topic:how to delete a file using a template
Next Topic:[Xtext] updating/writing resource descriptions chunk x of xxx
Goto Forum:

Current Time: Fri Dec 08 04:22:25 GMT 2023

Powered by FUDForum. Page generated in 0.01786 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top