Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext & Xtend Release 2.27.0 is available now
Xtext & Xtend Release 2.27.0 is available now [message #1852655] Mon, 30 May 2022 09:07 Go to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14285
Registered: July 2009
Senior Member
Dear Xtexters,

Xtext & Xtend Release 2.27.0 is available now at

- https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.27.0/
- http://www.eclipse.org/modeling/download.php?file=/modeling/tmf/xtext/downloads/drops/2.27.0/R202205300508/tmf-xtext-Update-2.27.0.zip
- and (soon) on maven central
- Eclipse Marketplace

You can find the matching MWE release 2.13.0 at

- https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.13.0/
- http://www.eclipse.org/modeling/download.php?file=/modeling/emft/mwe/downloads/drops/2.13.0/R202205191115/emft-mwe-2-lang-Update-2.13.0.zip
- and on maven central

Both will be part of Eclipse 2022-06

Release notes can be found at
- https://www.eclipse.org/Xtext/releasenotes.html#/releasenotes/2022/05/30/version-2-27-0
- https://www.eclipse.org/xtend/releasenotes.html#/releasenotes/2022/05/30/version-2-27-0

Happy Xtexting

Thanks
Christian


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext & Xtend Release 2.27.0 is available now [message #1852705 is a reply to message #1852655] Wed, 01 June 2022 14:57 Go to previous messageGo to next message
Michael Bischoff is currently offline Michael BischoffFriend
Messages: 3
Registered: June 2022
Junior Member
Hi,
thanks a lot!

I rebuilt my DSLs with Xtext 2.27.0, and I encounter problems with one of it.
The primary DSL works fine, but a secondary DSL which referenced the primary one fails to generate in a maven run:

Execution default of goal org.eclipse.xtext:xtext-maven-plugin:2.27.0:generate failed: Plugin org.eclipse.xtext:xtext-maven-plugin:2.27.0 or one of its dependencies could not be resolved: Could not find artifact de.jpaw.bonaparte-dsl:de.jpaw.bonaparte.dsl:eclipse-plugin:5.0.4

I see an artifact which corresponds to de.jpaw.bonaparte-dsl:de.jpaw.bonaparte.dsl:eclipse-plugin:5.0.4 in my .m2/repository.

Could this be related to some not-yet-complete Eclipse download at 2022-06, or to the removed old generator (because it worked with 2.26.0)?
I checked the generator, and in the MWE file, xtext.xtext.generator is used, but the Java classes reference classes from xtext.generator (which are not marked as deprecated).

Any help is welcome.

Best regards,
Michael
Re: Xtext & Xtend Release 2.27.0 is available now [message #1852711 is a reply to message #1852705] Thu, 02 June 2022 04:07 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14285
Registered: July 2009
Senior Member
I am not aware of any changes in that area. But yes I assume it can be due to incomplete 2022-06 repo.
Does it work if you. Switch back to 2022-03
Which Tycho version do you use?
can you provide a reproducer


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 02 June 2022 08:34]

Report message to a moderator

Re: Xtext & Xtend Release 2.27.0 is available now [message #1852713 is a reply to message #1852711] Thu, 02 June 2022 06:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14285
Registered: July 2009
Senior Member
do you get a message like

[ERROR] Failed to execute goal org.eclipse.xtext:xtext-maven-plugin:2.27.0:generate (default) on project example-project: Execution default of goal org.eclipse.xtext:xtext-maven-plugin:2.27.0:generate failed: Plugin org.eclipse.xtext:xtext-maven-plugin:2.27.0 or one of its dependencies could not be resolved: Could not transfer artifact org.osgi:org.osgi.service.prefs:eclipse-plugin:1.1.2 from/to eclipse (https://download.eclipse.org/releases/2022-06/202205271000/): Cannot access https://download.eclipse.org/releases/2022-06/202205271000/ with type p2 using the available connector factories: BasicRepositoryConnectorFactory: Cannot access https://download.eclipse.org/releases/2022-06/202205271000/ with type p2 using the available layout factories: Maven2RepositoryLayoutFactory: Unsupported repository layout p2 -> [Help 1]

????

if yes does it work if you add tycho to the plugin you build with?

e.g

<plugin>
<groupId>org.eclipse.tycho</groupId>
<artifactId>tycho-maven-plugin</artifactId>
<version>2.7.3</version>
<extensions>true</extensions>
</plugin>

if yes can you open a bug at xtext-maven in github
to me this looks like a regression in how xtext and tycho play together, but i am not aware of changes in xtext


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de

[Updated on: Thu, 02 June 2022 06:31]

Report message to a moderator

Re: Xtext & Xtend Release 2.27.0 is available now [message #1852718 is a reply to message #1852713] Thu, 02 June 2022 08:10 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14285
Registered: July 2009
Senior Member
you might also want to participate in https://github.com/eclipse/tycho/discussions/989

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xtext & Xtend Release 2.27.0 is available now [message #1852788 is a reply to message #1852718] Fri, 03 June 2022 17:19 Go to previous messageGo to next message
Michael Bischoff is currently offline Michael BischoffFriend
Messages: 3
Registered: June 2022
Junior Member
Hello,
thank you very much! Adding
<plugin>
    <groupId>org.eclipse.tycho</groupId>
    <artifactId>tycho-maven-plugin</artifactId>
    <version>2.7.3</version>
    <extensions>true</extensions>
</plugin>

to the project's build section worked for me. I added the plugin just before the xtext-maven-plugin. It is only required in case I specify 2 languages, for a single one it works without.

I used tycho 2.7.3 to build the DSL (as suggested by the release notes).
I now also tried to switch back to tycho 2.6.0, but in that case I already see errors building the DSL itself (something like javax.inject not found or icu4j not found).
I remember having seen something like missing org.osgi:org.osgi.service.prefs:eclipse-plugin:1.1.2 some days ago, but I cannot reproduce that now.

Best regards,
Michael
Re: Xtext & Xtend Release 2.27.0 is available now [message #1852789 is a reply to message #1852788] Fri, 03 June 2022 17:42 Go to previous messageGo to next message
Michael Bischoff is currently offline Michael BischoffFriend
Messages: 3
Registered: June 2022
Junior Member
Hello,
quick update: I can reproduce the missing org.osgi:org.osgi.service.prefs:eclipse-plugin:1.1.2 now.
This occurs when the repository in the target file is set to 2022-06.

Summarizing, the configuration which works for me is:
- xtext 2.27.0
- tycho 2.7.3
- repositories in target files as follows:
<repository location="https://download.eclipse.org/releases/2022-03/"/>
<repository location="https://download.eclipse.org/modeling/emft/mwe/updates/releases/2.13.0/"/>
<repository location="https://download.eclipse.org/modeling/tmf/xtext/updates/releases/2.27.0/"/>

and the additional tycho plugin in the build section for all projects which use the xtext.maven.plugin with more than one language.

Best regards,
Michael
Re: Xtext & Xtend Release 2.27.0 is available now [message #1852792 is a reply to message #1852789] Fri, 03 June 2022 18:34 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14285
Registered: July 2009
Senior Member
Can you try the workaround stated in the discussion at Tycho

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Generate templates.xml?
Next Topic:JvmUnknownTypeReference for Support Class
Goto Forum:
  


Current Time: Thu Jun 30 23:56:29 GMT 2022

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

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

Back to the top