Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Parsing in reconciler failed. / [Model.feature] does not exist
Parsing in reconciler failed. / [Model.feature] does not exist [message #1791123] Sun, 24 June 2018 10:39 Go to next message
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 149
Registered: March 2010
Senior Member

I started out with this grammar:

grammar org.xtext.example.mydsl.MyDsl with org.eclipse.xtext.common.Terminals

generate myDsl ""

Model: {Model}
    'greetings' '{'

    SimpleGreeting | GoodMorning | GoodEvening | CompoundGreeting;

    'greet' name=ID '{' 

    RefGreeting | InlineGreeting

    GoodMorning | GoodEvening

    'and' name=ID greet=[Greeting]

    'Hello' name=ID '!';

    'Good' 'morning' name=ID '!';

    'Good' 'evening' name=ID '!';

It was OK for parsing the following:

// day HappyDay

greetings {
	Hello X !
	Good morning Y !
	Good evening Z !
	greet script {
		Good morning A !
		Good evening B !
		and Thinking X

I then did the following change, adding the 'Day' rule used at the top of the model:

    'greetings' '{'

    'day' name=ID;

When launching Eclipse to test, I now:

  1. For the line 'and Thinking X' I have X underlined with red as a syntax error and the problems view reads "Couldn't resolve reference to greeting X"
  2. When commenting out the top line, I get the exception "Parsing in reconciler failed." (stack trace below)
  3. If I relaunch the Eclipse to test I get the exception "Model.greetings does not exist" (stack trace below) and the editor tab just has this message (no text area to actually edit the text

Now, (2) and (3) seem like there may be a problem in xtext itself. The stack trace does not involve any code I wrote. Does this seem like a bug I should report?

4719 [Worker-6] ERROR org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy  - Parsing in reconciler failed.
	at org.eclipse.xtext.resource.XtextResource.update(
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.doReconcile(
	at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.doRun(
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.access$3(
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(
	at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(
	at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(
	at org.eclipse.xtext.resource.OutdatedStateManager.exec(
	at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(
	at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(

Caused by: java.lang.IllegalArgumentException: Model.greetings does not exist
	at org.eclipse.xtext.parser.DefaultEcoreElementFactory.add(
	at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.add(
	at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.add(
	at org.xtext.example.mydsl.parser.antlr.internal.InternalMyDslParser.ruleModel(
	at org.xtext.example.mydsl.parser.antlr.internal.InternalMyDslParser.entryRuleModel(
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(
	at java.lang.reflect.Method.invoke(
	at org.eclipse.xtext.parser.antlr.AbstractInternalAntlrParser.parse(
	... 20 more

Re: Parsing in reconciler failed. / [Model.feature] does not exist [message #1791124 is a reply to message #1791123] Sun, 24 June 2018 10:49 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14593
Registered: July 2009
Senior Member
can you please open a bug at for that.
the problem is that you are lazy with assigning things
'greetings' '{'

and problem solved.

Twitter : @chrdietrich
Blog :
Re: Parsing in reconciler failed. / [Model.feature] does not exist [message #1791125 is a reply to message #1791124] Sun, 24 June 2018 10:57 Go to previous message
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 149
Registered: March 2010
Senior Member
Thank you!

Previous Topic:Formatting multiple parser rules within curly brackets
Next Topic:Create files only once
Goto Forum:

Current Time: Thu Dec 07 17:58:49 GMT 2023

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

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

Back to the top