Problem with compatible feature type when redefining variable declaration from xbase [message #755219] |
Mon, 07 November 2011 12:43  |
Eclipse User |
|
|
|
In an attempt to redefine the syntax of variable declarations from Xbase, I came accross the following error message in the JavaVariableDeclarator rule:
Cannot find compatible feature type in sealed EClass XVariableDeclaration from imported package http://www.eclipse.org/xtext/xbase/Xbase: The existing reference 'type' has an incompatible type 'null'. The expected type is 'JvmTypeReference'.
The error message is show in the editor but the project seems to build successfully.
Here is the grammar:
grammar org.xtext.example.mydsl1.MyDsl with org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations
generate myDsl "http://www.xtext.org/example/mydsl1/MyDsl"
import "http://www.eclipse.org/xtext/xbase/Xbase" as xbase
import "http://www.eclipse.org/xtext/common/JavaVMTypes" as jvmTypes
import "http://www.eclipse.org/emf/2002/Ecore" as ecore
....
JavaVariableDeclarator returns xbase::XVariableDeclaration:
type=JvmTypeReference name=ValidID ('=' right=XExpression)? ';'
;
I can't seem to find the problem. Something with my configuration?
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.15956 seconds