Jnario
Jnario copied to clipboard
NullPointerException in "XtextReconcilerJob"
Editing Specs I get from time to time following exception:
!ENTRY org.eclipse.core.jobs 4 2 2014-07-22 10:36:32.759 !MESSAGE An internal error occurred during: "XtextReconcilerJob". !STACK 0 java.lang.NullPointerException at org.eclipse.xtext.ui.editor.model.DocumentPartitioner.getFirstIndexEndingAfterOffset(DocumentPartitioner.java:829) at org.eclipse.xtext.ui.editor.model.DocumentPartitioner.computePartitioning(DocumentPartitioner.java:744) at org.eclipse.jface.text.AbstractDocument.computePartitioning(AbstractDocument.java:1430) at org.eclipse.jface.text.TextUtilities.computePartitioning(TextUtilities.java:431) at org.eclipse.xtext.ui.editor.reconciler.XtextSpellingReconcileStrategy.computePartitioning(XtextSpellingReconcileStrategy.java:85) at org.eclipse.xtext.ui.editor.reconciler.XtextSpellingReconcileStrategy.reconcile(XtextSpellingReconcileStrategy.java:77) at org.eclipse.xtext.ui.editor.reconciler.XtextDocumentReconcileStrategy.reconcile(XtextDocumentReconcileStrategy.java:57) at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.doRun(XtextReconciler.java:362) at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.access$2(XtextReconciler.java:349) at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:293) at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler$1.process(XtextReconciler.java:1) at org.eclipse.xtext.util.concurrent.IUnitOfWork$Void.exec(IUnitOfWork.java:36) at org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces.modify(AbstractReadWriteAcces.java:81) at org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker.modify(XtextDocument.java:224) at org.eclipse.xtext.ui.editor.model.XtextDocument.internalModify(XtextDocument.java:106) at org.eclipse.xtext.ui.editor.reconciler.XtextReconciler.run(XtextReconciler.java:290) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
This one comes as I pushed enter after typing fact "test it" {
in following Spec:
package test describe "Test extension mehtod" { extension MyExtension = new MyExtension fact "test it" { } def test() { } }
MyExtension
looks like this:
package test; public class MyExtension { public void method1() { } }
Everything was typed from scratch in a brand new workspace and a brand new single project.
Versions:
- Jnario SDK 1.0.0.201407141155 org.jnario.sdk.feature.group BMW Car IT
- Xtext SDK 2.6.2.v201407030533 org.eclipse.xtext.sdk.feature.group Eclipse Modeling Project
Same issue is affecting me. With same versions.