Skip to main content



      Home
Home » Modeling » TMF (Xtext) » "XtextReconcilerJob" internal error(Unrecoverable editor crash with simple grammar)
"XtextReconcilerJob" internal error [message #1352877] Tue, 13 May 2014 13:20
Eclipse UserFriend
Hello,
I have reduced my grammar to the following to illustrate the problem:
grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals
generate myDsl "...MyDsl"

MyDslModel: model=IfStatement;
NegationBooleanOperator: 'NOT';
Sign: '+' | '-';

IfStatement: 'if' exp=Expression ';';
Expression: Factor (Sign exp=Expression)?;  
Factor: constant=ID | (NegationBooleanOperator fac=Factor);

When I enter the following in the generated Xtext editor:
if if x +

this message pops up:
An internal error occurred during: "XtextReconcilerJob".
java.lang.IllegalArgumentException: Expression.exp does not exist


an error is thrown (see attached trace) and the editor stops working. The file can then no longer be opened in the editor, failing to parse on load.
It occurs only when the if is repeated. This case may seem artificial but it can happen often in the full grammar.
Many thanks for your help.
Previous Topic:Accessing an EObject's source
Next Topic:[SOLVED]Validation- Grammar mixin semantic validation
Goto Forum:
  


Current Time: Sun Jul 06 03:34:22 EDT 2025

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

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

Back to the top