Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » "XtextReconcilerJob" internal error(Unrecoverable editor crash with simple grammar)
"XtextReconcilerJob" internal error [message #1352877] Tue, 13 May 2014 17:20
Steve Pearson is currently offline Steve PearsonFriend
Messages: 10
Registered: May 2014
Junior Member
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 Jan 19 07:04:31 GMT 2020

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

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

Back to the top