Serialization assert in Xtext tester fails with unclear message [message #1014875] |
Tue, 26 February 2013 16:18 |
Jérôme Fouletier 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
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03511 seconds