Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Serialization assert in Xtext tester fails with unclear message
Serialization assert in Xtext tester fails with unclear message [message #1014875] Tue, 26 February 2013 16:18 Go to next message
Jérôme Fouletier is currently offline Jérôme FouletierFriend
Messages: 39
Registered: September 2010
Location: France
Member
While porting a XText 1.0 project to 2.3, we have run in a strange error that we don't know how to interpret:
Element Rule1:{ModelB} should be in rule Rule2 but it is in Rule1

This is coming from function SerializerTester.assertSerializeWithjoutNodeModel() in AbstractXtextTests.getResourceAndExpect().

The corresponding grammar looks like:
Rule1 returns Rule0 :
    {ModelB} 'keyword' right=Rule2
   |{ModelC} 'keyword2' right=Rule2
   |Rule2 (  {ModelD.left=current) 'keyword3' right=Rule2
           | {ModelE.left=current) 'keyword4' right=Rule2)
;

Rule2 returns Rule0 :
  ...
;

The corresponding code parsed without error, and serialized correctly with node model. What could the error indicate?

[Updated on: Tue, 26 February 2013 16:18]

Report message to a moderator

Re: Serialization assert in Xtext tester fails with unclear message [message #1015301 is a reply to message #1014875] Thu, 28 February 2013 07:03 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3118
Registered: July 2009
Senior Member
Am 26.02.13 17:18, schrieb Jérôme Fouletier:
> While porting a XText 1.0 project to 2.3, we have run in a strange error
> that we don't know how to interpret:
> Element Rule1:{ModelB} should be in rule Rule2 but it is in Rule1
>
> This is coming from function
> SerializerTester.assertSerializeWithjoutNodeModel() in
> AbstractXtextTests.getResourceAndExpect().
>
> The corresponding grammar looks like:
> Rule1 returns Rule0 :
> {ModelB} 'keyword' right=Rule2
> |{ModelC} 'keyword2' right=Rule2
> |Rule2 ( {ModelD.left=current) 'keyword3' right=Rule2
> | {ModelE.left=current) 'keyword4' right=Rule2)
> ;
>
> Rule2 returns Rule0 :
> ...
> ;
>
> The corresponding code parsed without error, and serialized correctly
> with node model. What could the error indicate?

Pleae file a ticket with a complete test case. Thanks.

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: Serialization assert in Xtext tester fails with unclear message [message #1016053 is a reply to message #1015301] Mon, 04 March 2013 18:21 Go to previous message
Jérôme Fouletier is currently offline Jérôme FouletierFriend
Messages: 39
Registered: September 2010
Location: France
Member
Done:
Bugzilla 402362
Previous Topic:How do Xtext dev manage to have custom impl for emf classes?
Next Topic:Number/String syntax errors in Xtext
Goto Forum:
  


Current Time: Thu Apr 25 19:15:21 GMT 2024

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

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

Back to the top