Skip to main content



      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 05:32 Go to next message
Eclipse UserFriend
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 160 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 09:01 Go to previous messageGo to next message
Eclipse UserFriend
as discussed in chat

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

you need to adapt your test
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 09:03 Go to previous message
Eclipse UserFriend
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: Thu Jun 19 12:53:02 EDT 2025

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

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

Back to the top