Xtext 2.37.0 Release Notes

Nov 19, 2024


Call to Action: Secure the future maintenance of Xtext

As you might have recognized, the number of people contributing to Xtext on a regular basis has declined over the past years and so has the number of contributions. At the same time the amount of work for basic maintenance has stayed the same or even increased with the new release cadence of Java and the Eclipse simultaneous release. Briefly: The future maintenance of Xtext is at risk, at least in the current form and as part of the Eclipse Simrel. If you care, please join the discussion in https://github.com/eclipse-xtext/xtext/issues/1721.

Relevant changes

  • We introduced a new bundle, org.eclipse.xtext.xtext.generator.dependencies, meant to be used in the build.properties of the DSL project in additional.bundles; this is meant to replace all the listed dependencies our wizard used to generate for additional.bundles.
    The project wizard has been updated accordingly. For existing projects, you should replace all the dependencies in additional.bundles with this single dependency.
    This bundle is only meant to be used in the DSL plug-in project, as an “additional bundle”, to be able to run the MWE2 workflow and to let the MWE2 Eclipse editor find all the needed types.
  • EcoreUtil2 now provides getAllContentsOfType(Resource, Class).

Breaking changes

  • We fixed a typo in the code-minings part: CodeMinding has been corrected to CodeMining. The wrong string was used to generate the configuration method in the abstract UI module, which is now correct: configureCodeMining. The wrong string appeared also in the Names.named for injection. Re-generating the language should update your DSL to the correct version. If you used to manually inject with Names.named("codeMinding"), you have to manually modify that to Names.named("codeMining").

Upgrades

  • MWE2 was updated to 2.20.0

Deprecations

  • Exceptions.addSuppressed is deprecated now and will be removed with the next Xtext release.

Removals

Credits

The Xtext project is thankful for the dedication of each committer and contributor. This release has been made possible by the following persons (in order of the number of contributed commits to this release).

  • Christian Dietrich
  • Lorenzo Bettini
  • Mehmet Emin Karaman
  • Ammar Awad
  • Hannes Wellmann
  • Tommaso Fonda

Fixed Issues

As in every release cycle we were eagerly hunting down bugs, and reviewed and integrated plenty of contributions. For further details please refer to the following lists: