Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342556

Summary: [Xtend] Reconciler failes with NoSuchElementException
Product: [Modeling] TMF Reporter: Robert von Massow <rvonmassow>
Component: XtextAssignee: Project Inbox <tmf.xtext-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: 2.0.0Flags: sebastian.zarnekow: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Robert von Massow CLA 2011-04-12 08:32:10 EDT
Build Identifier: 

I just pasted the following

	generate (Code code, LangDef lang) {
		'''«DEFINE genCode(LangDef language) FOR Code-»
«formatCode(unescapeXdocChars(contents), language)-»
«ENDDEFINE»'''
	}

then removed «DEFINE genCode(LangDef language) FOR Code-»

and got the Exception below

java.util.NoSuchElementException
at java.util.LinkedList.remove(LinkedList.java:788)
at java.util.LinkedList.removeLast(LinkedList.java:144)
at org.eclipse.xtext.xtend2.richstring.DefaultIndentationHandler.popIndentation(DefaultIndentationHandler.java:72)
at org.eclipse.xtext.xtend2.richstring.RichStringProcessor$Implementation.caseRichString(RichStringProcessor.java:66)
at org.eclipse.xtext.xtend2.richstring.RichStringProcessor$Implementation.caseRichString(RichStringProcessor.java:1)
at org.eclipse.xtext.xtend2.xtend2.util.Xtend2Switch.doSwitch(Xtend2Switch.java:158)
at org.eclipse.xtext.xtend2.xtend2.util.Xtend2Switch.doSwitch(Xtend2Switch.java:83)
at org.eclipse.xtext.xtend2.xtend2.util.Xtend2Switch.doSwitch(Xtend2Switch.java:69)
at org.eclipse.xtext.xtend2.richstring.RichStringProcessor$Implementation.doSwitch(RichStringProcessor.java:53)
at org.eclipse.xtext.xtend2.richstring.RichStringProcessor.process(RichStringProcessor.java:29)
at org.eclipse.xtext.xtend2.ui.highlighting.RichStringHighlightingCalculator.highlightRichStrings(RichStringHighlightingCalculator.java:71)
at org.eclipse.xtext.xtend2.ui.highlighting.RichStringHighlightingCalculator.provideHighlightingFor(RichStringHighlightingCalculator.java:58)
at org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.provideHighlightingFor(MergingHighlightedPositionAcceptor.java:48)
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.reconcilePositions(HighlightingReconciler.java:87)
at org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.modelChanged(HighlightingReconciler.java:275)
at org.eclipse.xtext.ui.editor.model.XtextDocument.notifyModelListeners(XtextDocument.java:126)
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:180)
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.afterModify(XtextDocument.java:1)
at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:50)
at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:187)
at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:98)
at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:27)
at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:233)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

Reproducible: Always
Comment 1 Sebastian Zarnekow CLA 2011-04-13 07:43:35 EDT
Pushed to master.
Comment 2 Karsten Thoms CLA 2017-09-19 17:32:11 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 3 Karsten Thoms CLA 2017-09-19 17:43:23 EDT
Closing all bugs that were set to RESOLVED before Neon.0