Strange error "Cannot find compatible feature ... in sealed EClass" [message #1061195] |
Thu, 30 May 2013 09:32  |
Eclipse User |
|
|
|
I have a Xtext grammar which looks like this:
grammar mygrammar with
com.iar.toolchain.dsl.ITL
import "http://iar.com/projectmodel" // defined using an xcore model
import "http://www.iar.com/toolchain/dsl/ITL" // from ITL.xtext
Project:
'project' configuration=[Configuration]
;
projectmodel.xcore defines Project like this:
...
import com.iar.toolchain.dsl.itl.Configuration
...
class Project {
...
refers Configuration configuration
...
}
Xtext complains about the configuration cross reference, and says:
Cannot find compatible feature configuration in sealed EClass Project from imported package http://iar.com/projectmodel: The existing reference 'configuration' has an incompatible type 'Configuration'. The expected type is 'Configuration'.
projectmodel.xcore can correctly resolve Configuration, but when attempting to use it from mygrammar.xtext, there seems to be two different Configuration classes which are incompatible.
Any clues as two what is going on?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05588 seconds