Rearranger exception

I got this using the Rearranger 2.0 plugin. Let me know if you need any
more information...
Bas

2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl -
2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl - IntelliJ IDEA 4.0 Build #1154
2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl - JDK: 1.4.2_03
2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl - VM: Java HotSpot(TM) Client VM
2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl - Vendor: Sun Microsystems Inc.
2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl - OS: Windows 2000
2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl - Last Action: Rearranger
2004-02-11 17:55:52,983 ERROR -
mand.impl.CommandProcessorImpl - Current Command: Rearranger
2004-02-11 17:55:53,003 ERROR -
mand.impl.CommandProcessorImpl -
java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.StringBuffer.insert(StringBuffer.java:832)
at com.wrq.rearranger.rearrangement.Spacer.adjustSpacing(Spacer.java:206)
at com.wrq.rearranger.rearrangement.Spacer.adjustSpacing(Spacer.java:155)
at com.wrq.rearranger.rearrangement.Spacer.access$000(Spacer.java:21)
at com.wrq.rearranger.rearrangement.Spacer$1.visitClass(Spacer.java:84)
at com.intellij.psi.impl.source.t.accept(t.java:37)
at com.intellij.psi.impl.source.q.acceptChildren(q.java:18)
at
com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java)
at
com.intellij.psi.JavaElementVisitor.visitFile(JavaElementVisitor.java:45)
at
com.intellij.psi.JavaElementVisitor.visitJavaFile(JavaElementVisitor.java:77)
at com.intellij.psi.impl.source.bb.accept(bb.java:19)
at com.wrq.rearranger.rearrangement.Spacer.respace(Spacer.java:145)
at
com.wrq.rearranger.RearrangerActionHandler.rearrangeDocument(RearrangerActionHandler.java:150)
at
com.wrq.rearranger.RearrangerActionHandler$rearrangerTask.run(RearrangerActionHandler.java:191)
at com.intellij.openapi.command.impl.a.executeCommand(a.java:9)
at
com.wrq.rearranger.RearrangerActionHandler.runWriteActionRearrangement(RearrangerActionHandler.java:109)
at
com.wrq.rearranger.RearrangerActionHandler$1.run(RearrangerActionHandler.java:71)
at com.intellij.openapi.application.a.b.runWriteAction(b.java:326)
at
com.wrq.rearranger.RearrangerActionHandler.execute(RearrangerActionHandler.java:67)
at
com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:1)
at com.intellij.openapi.command.impl.a.executeCommand(a.java:43)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:9)
at
com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:13)
at com.intellij.openapi.actionSystem.a.n$b_.actionPerformed(n$b_.java:3)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at com.intellij.openapi.actionSystem.a.n.fireActionPerformed(n.java:42)
at com.intellij.ui.a.a.h.doClick(h.java:149)
at com.intellij.ui.a.a.h.access$300(h.java:188)
at com.intellij.ui.a.a.h$a_.mouseReleased(h$a_.java:6)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at com.intellij.ide.q.b(q.java:26)
at com.intellij.ide.q.a(q.java:113)
at com.intellij.ide.q.dispatchEvent(q.java:61)
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)

4 comments

Hi, Bas -- could you possibly send me the file you were rearranging? You can email it to me if it is large or sensitive, at davek wrq.com. I also need your settings (just the element) from ]]>/config/options/other.xml.

Thanks for the bug report,
-Dave

0

Should be fixed in version 2.1, Bas -- give it a try.
-Dave

0

Thanks Dave, works great now!
Bas

On 2004/02/25 08:22, Dave Kriewall wrote:

Should be fixed in version 2.1, Bas -- give it a try.
-Dave

0

My idea hangs when pressing Ctrl-, then clicking outside then again Ctrl-,
plugin v2.1
build 1168

0

Please sign in to leave a comment.