简体   繁体   中英

Error in xCore file in Eclipse 4.3(Kepler)

I have just installed eclipse 4.3(Kepler) and when i open my xcore file it gives me some error:

Couldn't resolve reference to XAnnotationDirective 'GenModel'
Couldn't resolve reference to XAnnotationDirective 'ExtendedMetaData'.

what could be the reason? any help will be appreciated.

Regards
Sharif

The error is caused mainly due to incompatible dependencies and version mismatches. The following setting should fix your problem:

Firstly try doing a clean build. Generally that would solve your problem. But if it doesn't try the following:

emf-xcore-SDK-VERSION and the following dependencies:

Require-Bundle:

org.eclipse.core.runtime,
org.eclipse.emf.ecore;visibility:=reexport,
org.eclipse.xtext.xbase.lib;visibility:=reexport,
org.eclipse.emf.ecore.xcore.lib

in the JAR's manifest file and rebuild.

EDIT: Turns out that the official documentation of xcore states to use either Eclipse 4.2 or 3.8. Also the first version of Xcore will be part of the Juno release train and is currently available in the Juno p2 repository. Maybe the subsequent versions will add Kepler build as well. You probably need to downgrade the Eclipse to 4.2 to make xcore work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM