"XtextReconcilerJob" internal error [message #1352877] |
Tue, 13 May 2014 17:20 |
Steve Pearson Messages: 12 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:
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.
|
|
|
Powered by
FUDForum. Page generated in 0.04526 seconds