[Xtext] Workflow Errorwhen importing existing ecore meta-model [message #43205] |
Thu, 07 May 2009 06:04  |
Eclipse User |
|
|
|
Originally posted by: sderrienREMOVE.irisa.fr
Hello,
I am trying to define a DSL in which I import another ecore metamodel
using the approach suggested in the documentation. I use the following
directive.
import "http://www.irisa.fr/cairn/datapath" as datapath
I first get an error in the editor telling me that the package is not
known, since it is not in the EMF registry. After registering the ecore
file, the error disapears, and I can then use my model classes as Rules
in the DSL spec.
The actual problem arise when I want to run the mwe workflow, I get the
following exception :
313 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering
platform uri 'C:\workspace'
1735 [main] ERROR ternal.core.ast.util.VisitorCreator -
java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:5 Cannot
resolve reference to '"http://www.irisa.fr/cairn/datapath"']
java.lang.RuntimeException: java.lang.IllegalStateException:
[XtextLinkingDiagnostic: null:5 Cannot resolve reference to
'"http://www.irisa.fr/cairn/datapath"']
Did I miss something, or is it a bug ?
I am using version 0.7 from March.
Thank you in advance,
Steven Derrien
|
|
|
Re: [Xtext] Workflow Errorwhen importing existing ecore meta-model [message #43241 is a reply to message #43205] |
Thu, 07 May 2009 07:45  |
Eclipse User |
|
|
|
Originally posted by: sderrienREMOVE.irisa.fr
Well, I should have searched this newsgroup a little bit more
carrefully, since this problem was already mentioned in a previous threads.
For the record, on has just to add the follwing line to the mwe workflow
file.
Add this to your GenerateYOURDsl.mwe file:
//-----
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup">
<registerGeneratedEPackage
value="your.model.package.name.YourModelPackage"/>
</bean>
//-----
Steven
news.eclipse.org a écrit :
> Hello,
>
> I am trying to define a DSL in which I import another ecore metamodel
> using the approach suggested in the documentation. I use the following
> directive.
>
> import "http://www.irisa.fr/cairn/datapath" as datapath
>
> I first get an error in the editor telling me that the package is not
> known, since it is not in the EMF registry. After registering the ecore
> file, the error disapears, and I can then use my model classes as Rules
> in the DSL spec.
>
> The actual problem arise when I want to run the mwe workflow, I get the
> following exception :
>
> 313 [main] INFO lipse.emf.mwe.utils.StandaloneSetup - Registering
> platform uri 'C:\workspace'
>
> 1735 [main] ERROR ternal.core.ast.util.VisitorCreator -
> java.lang.IllegalStateException: [XtextLinkingDiagnostic: null:5 Cannot
> resolve reference to '"http://www.irisa.fr/cairn/datapath"']
> java.lang.RuntimeException: java.lang.IllegalStateException:
> [XtextLinkingDiagnostic: null:5 Cannot resolve reference to
> '"http://www.irisa.fr/cairn/datapath"']
>
> Did I miss something, or is it a bug ?
>
> I am using version 0.7 from March.
>
> Thank you in advance,
>
> Steven Derrien
|
|
|
Powered by
FUDForum. Page generated in 0.05803 seconds