Community
Participate
Working Groups
Build Identifier: Xtext SDK 2.0.0.v201106050907 org.eclipse.core.runtime.AssertionFailedException: assertion failed: at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110) at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96) at org.eclipse.jface.text.Position.setLength(Position.java:185) at org.eclipse.jface.text.rules.FastPartitioner.computePartitioning(FastPartitioner.java:634) at org.eclipse.jface.text.AbstractDocument.computePartitioning(AbstractDocument.java:1430) at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider.computeCommentFolding(DefaultFoldingRegionProvider.java:107) at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider.doGetFoldingRegions(DefaultFoldingRegionProvider.java:67) at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider$1.exec(DefaultFoldingRegionProvider.java:58) at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider$1.exec(DefaultFoldingRegionProvider.java:1) at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.readOnly(AbstractReadWriteAcces.java:32) at org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(XtextDocument.java:86) at org.eclipse.xtext.ui.editor.folding.DefaultFoldingRegionProvider.getFoldingRegions(DefaultFoldingRegionProvider.java:54) at org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider.calculateProjectionAnnotationModel(DefaultFoldingStructureProvider.java:114) at org.eclipse.xtext.ui.editor.folding.DefaultFoldingStructureProvider.modelChanged(DefaultFoldingStructureProvider.java:92) 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:189) at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:98) at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:33) at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:239) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) ------ Unhandled event loop exception (see also attached error.log) Reproducible: Always Steps to Reproduce: 1. open an mwe2 file and comment a block of lines 2. close and re-open the mwe2 file 3. move the comment tokens '/*' '*/' to other lines (do it a couple of times) 3. after a while exceptions are thrown (see details)
Created attachment 198029 [details] error log
I cannot reproduce the issue. Could you please provide more details such as the mwe2 file and the exact location of the comment tokens?
Created attachment 200699 [details] Screenshot see attached picture for details about this bug
Created attachment 200700 [details] mwe2 file
btw: I just tried with a fresh Eclipse 3.7 + Xtext 2.0.0.v201106070531 and I can reproduce this bug... ~Serano
I tried to reproduce the bug with the attached file with different patterns but did not see the exception. What I tried: Move opening comment token (/*) a couple of line up / down (fast) Same for closing token Tried the same slowly (waiting for the reconciler to kick in) Tried the same with the complete comment section Tried the same with a couple of lines surrounding the opening / closing sequence. Please describe very detailled what you do to reproduce the bug (e.g. 5 lines up, 2 down, 5 up, 7 down, 1 down) and reopen the ticket if it succeeds with the latest builds.
Steps to reproduce this Bug on my Mac with Xtext 2.0 on Indigo 1 Workflow { 2 3 bean = StandaloneSetup { 4 scanClassPath = true 5 platformUri = "${runtimeProject}/.." 6 registerGenModelFile = "platform:/resource/org.eclipse.xtext.xbase/model/Xbase.genmodel" 7 registerGenModelFile = "platform:/resource/org.eclipse.xtext.common.types/model/JavaVMTypes.genmodel" 8 } 1) Open the org.eclipse.xtext.example.domainmodel example 2) Open the Workflow GenerateDomainmodelLanguage.mwe2 3) Add a comment (/* */) before line 3 'bean = StandaloneSetup {' 4) Remove the closing element of the comment (*/) 5) Add */ before the closing brackect } in line 8 6) Remove */ 7) Add */ after the closing bracket in line 8
reopened.
(In reply to comment #7) > Steps to reproduce this Bug on my Mac with Xtext 2.0 on Indigo > Thanks for the repro, Jan. The issue could be fixed.
Closing all bugs that were set to RESOLVED before Neon.0