Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Validation Test Fail after update to Xtext 2.34 and MWE 2.17(Validation is broken after update to the latest xtext)
Validation Test Fail after update to Xtext 2.34 and MWE 2.17 [message #1864867] Tue, 16 April 2024 09:32 Go to next message
José Ferreira is currently offline José FerreiraFriend
Messages: 2
Registered: April 2024
Junior Member
Hey all :)

After some search online i could not find and solution to my problem.

Recently i tried to move my RCP application to the latest Eclipse 03/2024 and to the latest Xtext 2.34.

Everything seems to be right when it come to loading my DSL and validation on runtime.
But when i try to run the tests on my maven/jenkins build it fails all the tests under validation, It seems it cannot identify the markers as they return null.

Any hint why should it be happening?

Thanks alot,
Leaving an example of the output of my maven run. (keep in mind that this happen with all the tests that require validation on the MyDSL.ui.tests)

index.php/fa/44145/0/
  • Attachment: test.png
    (Size: 29.31KB, Downloaded 59 times)
Re: Validation Test Fail after update to Xtext 2.34 and MWE 2.17 [message #1864871 is a reply to message #1864867] Tue, 16 April 2024 13:01 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14682
Registered: July 2009
Senior Member
as discussed in chat

https://github.com/eclipse/xtext/pull/2907

you need to adapt your test


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Validation Test Fail after update to Xtext 2.34 and MWE 2.17 [message #1864872 is a reply to message #1864867] Tue, 16 April 2024 13:03 Go to previous message
José Ferreira is currently offline José FerreiraFriend
Messages: 2
Registered: April 2024
Junior Member
Thanks to the help of Christian Dietrich, i was able to find the issue.

I had some miss usage of getAtribute in some util class that was using Imarker.LOCATION.
This was leading to retrieve a null value instead of the right marker.

https://github.com/eclipse/xtext/pull/2907
Previous Topic:Citizen user learning share : Starting MyDSL project
Next Topic:How to restrict validator to the active working file?
Goto Forum:
  


Current Time: Sat May 25 11:33:10 GMT 2024

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

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

Back to the top