Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » runtime version of generated model
runtime version of generated model [message #1789880] Thu, 31 May 2018 10:20 Go to next message
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 149
Registered: March 2010
Senior Member
Hello,

I have a peculiar issue: I use two computers for working on the same codebase: one is a mac and another is a windows PC. Both are updated to EMF/Xtext/Xtend version 2.13 but somehow, on my Windows installation the "model/generated/SbeLangDsl.genmodel" file targets runtime 2.12:

<genmodel:GenModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
    xmlns:genmodel="http://www.eclipse.org/emf/2002/GenModel" copyrightText="generated by Xtext 2.13.0" modelDirectory="/org.sbelang.dsl/src-gen"
    modelPluginID="org.sbelang.dsl" forceOverwrite="true" modelName="SbeLangDsl" updateClasspath="false"
    rootExtendsClass="org.eclipse.emf.ecore.impl.MinimalEObjectImpl$Container" complianceLevel="6.0"
    copyrightFields="false" runtimeVersion="2.12">


Notice the
copyrightText="generated by Xtext 2.13.0" 
versus the ending
runtimeVersion="2.12"


On my Mac both versions are 2.13 and I just want to know why this difference exists. I've searched in the preferences for a "target runtime" setting but can't seem to find anything?
Re: runtime version of generated model [message #1789881 is a reply to message #1789880] Thu, 31 May 2018 10:32 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
are you sure the installed emf version is the same?
did you set that version explicitely
emfGenerator = {
				emfRuntimeVersion = ".."
			}


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: runtime version of generated model [message #1789886 is a reply to message #1789881] Thu, 31 May 2018 11:13 Go to previous messageGo to next message
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 149
Registered: March 2010
Senior Member
No I have done no such thing. From your answer it seems like I've probably missed something on my eclipse installation and it's not some setting as I originally thought.

I'll have a look at the installation again when I have access to that box. Maybe re-run my p2 script to install a fresh bundle pool. I recon it's just an artifact of something in the install that I've missed. Might as well switch to 2.14 if I'm doing that...
Re: runtime version of generated model [message #1789887 is a reply to message #1789886] Thu, 31 May 2018 11:16 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
it is always recommended to define an use an explicit target platform to avoid such discrepancies

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext 2.13 update site
Next Topic:code gen when Build Automatically disabled
Goto Forum:
  


Current Time: Tue Apr 23 11:08:47 GMT 2024

Powered by FUDForum. Page generated in 0.03296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top