Rearranger exception

I got this using Live Rearrange in IDEA 5.0, using latest Rearranger plugin.

No message
java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:519)
at java.lang.StringBuffer.append(StringBuffer.java:307)
at com.wrq.rearranger.entry.RangeEntry.emitElement(RangeEntry.java:286)
at com.wrq.rearranger.entry.RangeEntry.emitAllElements(RangeEntry.java:271)
at com.wrq.rearranger.entry.RangeEntry.emit(RangeEntry.java:241)
at com.wrq.rearranger.ruleinstance.HeaderTrailerRuleInstance.emit(HeaderTrailerRuleInstance.java:66)
at com.wrq.rearranger.rearrangement.Emitter.emitRuleInstances(Emitter.java:67)
at com.wrq.rearranger.entry.ClassEntry.emit(ClassEntry.java:466)
at com.wrq.rearranger.ruleinstance.CommonRuleInstance.emit(CommonRuleInstance.java:169)
at com.wrq.rearranger.rearrangement.Emitter.emitRuleInstances(Emitter.java:67)
at com.wrq.rearranger.rearrangement.Emitter.emitRearrangedDocument(Emitter.java:50)
at com.wrq.rearranger.popup.LiveRearrangerDialog.finish(LiveRearrangerDialog.java:119)
at com.wrq.rearranger.popup.LiveRearrangerDialog.liveRearranger(LiveRearrangerDialog.java:103)
at com.wrq.rearranger.LiveRearrangerActionHandler.liveRearrangeDocument(LiveRearrangerActionHandler.java:210)
at com.wrq.rearranger.LiveRearrangerActionHandler$1.run(LiveRearrangerActionHandler.java:137)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:438)
at com.wrq.rearranger.LiveRearrangerActionHandler.buildLiveRearrangerData(LiveRearrangerActionHandler.java:132)
at com.wrq.rearranger.LiveRearrangerActionHandler.execute(LiveRearrangerActionHandler.java:88)
at com.intellij.openapi.editor.actionSystem.EditorAction$1.run(EditorAction.java:51)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:30)
at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:84)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:57)
at com.intellij.openapi.editor.actionSystem.EditorAction.actionPerformed(EditorAction.java:42)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:3)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:8)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:155)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:154)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMenuDragMouseHandler.menuDragMouseReleased(BegMenuItemUI.java:10)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:578)
at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:475)
at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:422)
at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:283)
at javax.swing.plaf.basic.BasicPopupMenuUI$MouseGrabber.eventDispatched(BasicPopupMenuUI.java:758)
at java.awt.Toolkit$SelectiveAWTEventListener.eventDispatched(Toolkit.java:2206)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2100)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
at java.awt.Toolkit$ToolkitEventMulticaster.eventDispatched(Toolkit.java:2099)
at java.awt.Toolkit.notifyAWTEventListeners(Toolkit.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:3867)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1774)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:65)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:107)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:160)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

1 comment
Comment actions Permalink

I added some debugging information to the version I'm about to upload. I'd appreciate it if you could send it to me if the problem happens again.

Something is wrong with the text range for some PSI element.

-Dave

0

Please sign in to leave a comment.