Text block is not empty

Any one have a clue to this? calling addBefore() with a PsiDocElement.

I see the javadoc being inserted, then this.

Error message: Text block is not empty
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:78)
at com.intellij.psi.impl.bj.childAdded(bj.java:27)
at com.intellij.psi.impl.bh.m(bh.java:30)
at com.intellij.psi.impl.bh.g(bh.java:235)
at com.intellij.psi.impl.source.e.c.a(c.java:195)
at com.intellij.psi.impl.source.f.e.a(e.java:13)
at com.intellij.psi.impl.source.e.r.a(r.java:111)
at com.intellij.psi.impl.source.e.a.bt.a(bt.java:8)
at com.intellij.psi.impl.source.q.addBefore(q.java:28)
at com.talios.jira.idea.JiraConfigurationComponent$3.run(JiraConfigurationComponent.java:319)
at com.intellij.openapi.application.a.b.runWriteAction(b.java:170)
at com.talios.jira.idea.JiraConfigurationComponent$2.run(JiraConfigurationComponent.java:313)
at com.intellij.openapi.command.impl.a.executeCommand(a.java:91)
at com.talios.jira.idea.JiraConfigurationComponent$JiraAnnotationListener.documentChanged(JiraConfigurationComponent.java:311)
at com.intellij.openapi.editor.c.k.a(k.java:150)
at com.intellij.openapi.editor.c.k.deleteString(k.java:167)
at com.intellij.openapi.editor.b.d.a(d.java:25)
at com.intellij.openapi.editor.b.d$b_.executeWriteAction(d$b_.java:9)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java)
at com.intellij.openapi.application.a.b.runWriteAction(b.java:170)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:0)
at com.intellij.codeInsight.d.q.a(q.java:45)
at com.intellij.codeInsight.d.q.executeWriteAction(q.java:16)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler$1.run(EditorWriteActionHandler.java)
at com.intellij.openapi.application.a.b.runWriteAction(b.java:170)
at com.intellij.openapi.editor.actionSystem.EditorWriteActionHandler.execute(EditorWriteActionHandler.java:0)
at com.intellij.codeInsight.m.a.g.execute(g.java:3)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java)
at com.intellij.openapi.command.impl.a.executeCommand(a.java:116)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:20)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:8)
at com.intellij.openapi.a.a.d.a(d.java:79)
at com.intellij.openapi.a.a.d.b(d.java:84)
at com.intellij.openapi.a.a.d.a(d.java:5)
at com.intellij.ide.q.a(q.java:41)
at com.intellij.ide.q.dispatchEvent(q.java:137)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)



this is then followed by:

Error message: Length wrong! dirtyScope:PsiJavaFile:JiraConfigurationComponent.java
Details: file length:12354
document length:12353
file stamp:869
document stamp:869
file text:package com.talios.jira.idea;


I've seen reference to CodeEditorManager and a commitToPsi() but can't
seem to find that in the current API...

1 comment
Comment actions Permalink

On Sun, 25 Jan 2004 21:24:10 +1300, Mark Derricutt wrote:

I've seen reference to CodeEditorManager and a commitToPsi() but can't


Found the fix to this, but the Text Block not empty is still bugging me...

0

Please sign in to leave a comment.