Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext upgrade
Xtext upgrade [message #1793434] Wed, 08 August 2018 09:27 Go to next message
Dominik Leszyk is currently offline Dominik LeszykFriend
Messages: 19
Registered: December 2013
Junior Member
Hi All,

We have a bunch of DSLs written with Xtext 2.7 which we're going to migrate to the newest Xtext 2.14. In our builds we use Tycho.

What is your recommendation - should we just update version of dependencies in our poms and target definition platform files. Or would it be more recommended to generate new projects from scratch and move our DSL projects to the new structure?

Dominik
Re: Xtext upgrade [message #1793435 is a reply to message #1793434] Wed, 08 August 2018 09:52 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 12386
Registered: July 2009
Senior Member
Its just a matter of personal preference and if you want to port the workflow too.
In all cases you have to copy and adapt anywhere. So there is no recommendation



Need professional support for Xtext, Xpand, EMF?
Go to: https://xtext.itemis.com
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext upgrade [message #1793436 is a reply to message #1793435] Wed, 08 August 2018 10:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 6111
Registered: July 2009
Senior Member
Hi

I continue to use old style Xtext and with only modest tweaks I can use the latest Xtext release, however I am aware that I am losing out on at least the new formatter. However the significant formatter bugs seem to persist anyway in Xtext/MWE2 editors. Not tracking the latest code has risks that functionality that you rely on eventually breaks. If you want your code to continue to run on an Xtext 2.7 platform then an upgrade is not a good idea. If you are refreshing your code as part of an enhancement program then an upgrade is probably sensible. If you are just feeling guilty about lagging behind, perhaps you can lag a bit further. When upgrading, I would certainly merge your old code into 'new' projects so that you pick up all the latest default facilities.

Regards

Ed Willink
Re: Xtext upgrade [message #1793446 is a reply to message #1793436] Wed, 08 August 2018 13:18 Go to previous messageGo to next message
Tamas Miklossy is currently offline Tamas MiklossyFriend
Messages: 20
Registered: February 2016
Junior Member
The following blog post may guide you through the migration process: https://typefox.io/xtexts-new-generator-migration
Re: Xtext upgrade [message #1793447 is a reply to message #1793446] Wed, 08 August 2018 13:30 Go to previous messageGo to next message
Dominik Leszyk is currently offline Dominik LeszykFriend
Messages: 19
Registered: December 2013
Junior Member
Thank you all for comments. I will try to generate fresh projects with wizards and copy existing files over.
Re: Xtext upgrade [message #1797616 is a reply to message #1793447] Fri, 02 November 2018 18:16 Go to previous message
ABHAY GUPTA is currently offline ABHAY GUPTAFriend
Messages: 1
Registered: November 2018
Location: SAN DIEGO
Junior Member
I assume you are trying to upgrade to latest Xtext/Xtend release by keeping your current code / project intact. If yes, read ahead:

You will required to do changes in following files (in case below we are upgrading to 2.15.0 from 2.13.0):

1. parent/pom.xml

  -               <tycho-version>1.0.0</tycho-version>
  -               <xtextVersion>2.13.0</xtextVersion>
  +               <tycho-version>1.2.0</tycho-version>
  +               <xtextVersion>2.15.0</xtextVersion>


2. MANIFEST.MF

e.g. parent/mydsl/META-INF/MANIFEST.MF

- org.eclipse.xtext.xbase.lib;bundle-version="2.13.0",
- org.antlr.runtime,
+ org.eclipse.xtext.xbase.lib;bundle-version="2.14.0",
+ org.antlr.runtime;bundle-version="[3.2.0,3.2.1)",
  org.eclipse.xtext.util,
  org.eclipse.emf.common,
- org.eclipse.xtend.lib;bundle-version="2.13.0",
+ org.eclipse.xtend.lib;bundle-version="2.14.0",


3. parent/mydsl.target/target.target

update repository:

-<repository location="http://download.eclipse.org/releases/oxygen/201709271000"/>
+<repository location="http://download.eclipse.org/releases/2018-09/201809191002"/>


update xtext release version:

-<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.13.0/"/>
+<repository location="http://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.15.0/"/>


4. These files will be automatically updated once you build `mvn clean install`

parent/feature/feature.xml
parent/ui/plugin.xml_gen


Hope this helps!
Previous Topic:Signer information error
Next Topic:please delete this post
Goto Forum:
  


Current Time: Fri Nov 16 05:09:46 GMT 2018

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

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

Back to the top