Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 342280 - [Xtend] Reconciler complains when removing all tabs of a single line in a RichString expression
Summary: [Xtend] Reconciler complains when removing all tabs of a single line in a Ric...
Status: CLOSED FIXED
Alias: None
Product: TMF
Classification: Modeling
Component: Xtext (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-08 09:01 EDT by Robert von Massow CLA
Modified: 2017-09-19 18:04 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert von Massow CLA 2011-04-08 09:01:08 EDT
Build Identifier: 201104061304

	dispatch generate(AbstractSection aS) {
		'''«aS.title.genPlainText»
		«FOR ss:(aS.subSection as Iterable<AbstractSection>)»
	«ss.generate» 
		«ENDFOR»
		'''
	}
When removing the last tab from the line containing «ss.generate» the reconciler crashes with the following error message:

An internal error occurred during: "XtextReconcilerJob".
java.util.NoSuchElementException

Reproducible: Always
Comment 1 Robert von Massow CLA 2011-04-08 09:02:14 EDT
The complete stack trace:
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.handleFirstLine(RichStringProcessor.java:170)
	at org.eclipse.xtext.xtend2.richstring.RichStringProcessor$Implementation.caseRichStringLiteral(RichStringProcessor.java:130)
	at org.eclipse.xtext.xtend2.richstring.RichStringProcessor$Implementation.caseRichStringLiteral(RichStringProcessor.java:1)
	at org.eclipse.xtext.xtend2.xtend2.util.Xtend2Switch.doSwitch(Xtend2Switch.java:167)
	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$Implementation.caseRichString(RichStringProcessor.java:64)
	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)
Comment 2 Sebastian Zarnekow CLA 2011-04-08 09:02:35 EDT
Already fixed locally. Will push after the smoke tests are green.
Comment 3 Sebastian Zarnekow CLA 2011-04-08 09:14:22 EDT
Pushed.
Comment 4 Karsten Thoms CLA 2017-09-19 17:53:57 EDT
Closing all bugs that were set to RESOLVED before Neon.0
Comment 5 Karsten Thoms CLA 2017-09-19 18:04:37 EDT
Closing all bugs that were set to RESOLVED before Neon.0