Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext version: IDE vs target platform
xtext version: IDE vs target platform [message #1289288] Wed, 09 April 2014 03:34
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 897
Registered: July 2009
Senior Member
Hi,

I create my own .target files with P2 repositories locations, which I
use to:

1. Set the TP in the IDE
2. use in tycho builds.

In my case, the versions installed in the IDE is newer than from TP.

IDE: I have Kepler installed with Xtext 2.4.3 (Also Xtend, and MWE2
language/runtime)
TP: The release here is older, it's Xtext 2.3.1

I am not able run the workflow which was build for 2.3.1, I get the
exception [1], hence my question. Is it a requirement to keep the IDE
installed and target platform version in sync. (Same version)?

A broader question would be, what is the best way to deal with newer
version of Xtext and Eclipse, with older generated xtext projects? How
do others do it? Some best practice would be very useful.


Thank You,
Christophe


[1] exception for .mwe2 generated with xtext 2.3.1 on an 2.4.3 IDE.

1 [main] ERROR mf.mwe2.launch.runtime.Mwe2Launcher -
com.google.inject.internal.util.$ComputationException:
java.lang.NoClassDefFoundError:
org/eclipse/xtext/common/types/access/TypeNotFoundException
com.google.inject.internal.util.$ComputationException:
com.google.inject.internal.util.$ComputationException:
java.lang.NoClassDefFoundError:
org/eclipse/xtext/common/types/access/TypeNotFoundException
at
com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553)
at
com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419)
at
com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
at
com.google.inject.internal.ConstructorInjectorStore.get(ConstructorInjectorStore.java:49)
at
com.google.inject.internal.ConstructorBindingImpl.initialize(ConstructorBindingImpl.java:125)
at
com.google.inject.internal.InjectorImpl.initializeBinding(InjectorImpl.java:507)
at
com.google.inject.internal.AbstractBindingProcessor$Processor$1.run(AbstractBindingProcessor.java:159)
at
com.google.inject.internal.ProcessedBindingData.initializeBindings(ProcessedBindingData.java:44)
at
com.google.inject.internal.InternalInjectorCreator.initializeStatically(InternalInjectorCreator.java:122)
at
com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:106)
at com.google.inject.Guice.createInjector(Guice.java:95)
at com.google.inject.Guice.createInjector(Guice.java:72)
at com.google.inject.Guice.createInjector(Guice.java:62)
at
org.eclipse.emf.mwe2.language.Mwe2StandaloneSetupGenerated.createInjector(Mwe2StandaloneSetupGenerated.java:34)
at
org.eclipse.emf.mwe2.language.Mwe2StandaloneSetupGenerated.createInjectorAndDoEMFRegistration(Mwe2StandaloneSetupGenerated.java:28)
at
org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.run(Mwe2Launcher.java:71)
at
org.eclipse.emf.mwe2.launch.runtime.Mwe2Launcher.main(Mwe2Launcher.java:35)
Caused by: com.google.inject.internal.util.$ComputationException:
java.lang.NoClassDefFoundError:
org/eclipse/xtext/common/types/access/TypeNotFoundException
at
com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553)
at
com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419)
at
com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041)
at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
at
com.google.inject.internal.MembersInjectorStore.get(MembersInjectorStore.java:65)
at
com.google.inject.internal.ConstructorInjectorStore.createConstructor(ConstructorInjectorStore.java:73)
at
com.google.inject.internal.ConstructorInjectorStore.access$000(ConstructorInjectorStore.java:28)
at
com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:36)
at
com.google.inject.internal.ConstructorInjectorStore$1.create(ConstructorInjectorStore.java:32)
at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:39)
at
com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549)
... 17 more
Caused by: java.lang.NoClassDefFoundError:
org/eclipse/xtext/common/types/access/TypeNotFoundException
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2404)
at java.lang.Class.getDeclaredConstructors(Class.java:1853)
at
com.google.inject.spi.InjectionPoint.forConstructorOf(InjectionPoint.java:243)
at
com.google.inject.internal.ConstructorBindingImpl.create(ConstructorBindingImpl.java:96)
at
com.google.inject.internal.InjectorImpl.createUninitializedBinding(InjectorImpl.java:629)
at
com.google.inject.internal.InjectorImpl.createJustInTimeBinding(InjectorImpl.java:845)
at
com.google.inject.internal.InjectorImpl.createJustInTimeBindingRecursive(InjectorImpl.java:772)
at
com.google.inject.internal.InjectorImpl.getJustInTimeBinding(InjectorImpl.java:256)
at
com.google.inject.internal.InjectorImpl.getBindingOrThrow(InjectorImpl.java:205)
at
com.google.inject.internal.InjectorImpl.getInternalFactory(InjectorImpl.java:853)
at
com.google.inject.internal.SingleFieldInjector.<init>(SingleFieldInjector.java:41)
at
com.google.inject.internal.MembersInjectorStore.getInjectors(MembersInjectorStore.java:125)
at
com.google.inject.internal.MembersInjectorStore.createWithListeners(MembersInjectorStore.java:95)
at
com.google.inject.internal.MembersInjectorStore.access$000(MembersInjectorStore.java:34)
at
com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:42)
at
com.google.inject.internal.MembersInjectorStore$1.create(MembersInjectorStore.java:39)
at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:39)
at
com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549)
... 27 more
Caused by: java.lang.ClassNotFoundException:
org.eclipse.xtext.common.types.access.TypeNotFoundException
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
Previous Topic:Getting hidden tokens for a model element
Next Topic:Supporting a complex languge
Goto Forum:
  


Current Time: Fri Aug 01 12:16:38 EDT 2014

Powered by FUDForum. Page generated in 0.01691 seconds