Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException in "XtextReconcilerJob" #134

Open
borisbrodski opened this issue Jul 22, 2014 · 1 comment
Open

NullPointerException in "XtextReconcilerJob" #134

borisbrodski opened this issue Jul 22, 2014 · 1 comment

Comments

@borisbrodski
Copy link
Collaborator

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
@gzunino
Copy link

gzunino commented Oct 22, 2014

Same issue is affecting me. With same versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants