|Re: Problem with Super Grammar and an Ecore based SubGrammar [message #1116004 is a reply to message #1114519]
||Tue, 24 September 2013 17:59
| Ed Willink
Registered: July 2009
The OCL and QVT editors have multiple levels of manually defined Ecore
metamodels and so I have seen this error many times.
Xtext 2.0 had a single unhelpful error message in this area against
which I identified many distinct causes in
From my experience, Xtext was generally correct but unhelpful in
explaining the problem. The messages are now much better.
If you can't spot your error, switch to an auto-generated Ecore
meta-model so that you can see what Xtext wants. Then raise a bug about
the inadequate diagnostic case.
On 22/09/2013 17:42, Olaf Bigalk wrote:
> I have a super grammar(mydsl7) and a subgrammar(mydsl8) which is based on an predefined ecore model(My8,ecore). In the sub grammar I get the following error:
> Cannot find compatible feature greetings in sealed EClass Model8 from imported package http:/www.xtext.org/example/mydsl8/Mydsl8: The existing reference 'greetings' has an incompatible type 'Greeting7'. The expected type is 'Greeting7'.
> I guess I missed something to configure.
> Can any body give me a hint how to fix this?
> I prepared an example setup see the atached zip file.
> It is an eclipse kepler setup. I remove the anlr jar and the class files
Powered by FUDForum
. Page generated in 0.01737 seconds