Community
Participate
Working Groups
Build Identifier: I20110613-1736 The following error message is shown when redefining the syntax of variable declarations from Xbase: 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'. See forum : http://www.eclipse.org/forums/index.php/t/261672/ It happens when using the following grammar: grammar org.xtext.example.mydsl2.MyDsl with org.eclipse.xtext.xbase.annotations.XbaseWithAnnotations generate myDsl "http://www.xtext.org/example/mydsl2/MyDsl" import "http://www.eclipse.org/xtext/xbase/Xbase" import "http://www.eclipse.org/xtext/common/JavaVMTypes" as jvmTypes import "http://www.eclipse.org/emf/2002/Ecore" as ecore Model: greetings+=Greeting*; Greeting: 'Hello' name=ID '!'; JavaVariableDeclarator returns XVariableDeclaration: {XVariableDeclaration} writeable?='final'? (type=JvmTypeReference name=ValidID) ('=' right=XExpression)? ';' ; Reproducible: Always Steps to Reproduce: 1. Do a fresh eclipse/xtext install 2. Create a new Xtext project 3. Copy the very short grammar to the mydsl.xtext file.
Successfully tested with a fresh eclipse and the latest nightly from master and maintenance.
Closing all bugs that were set to RESOLVED before Neon.0