parallaxe / OpenInSplittedTab

AppCode plugin to open the declaration/implementation of the current selected symbol within a vertically splitted tab.
MIT License
17 stars 4 forks source link

"open in splitted tab" action sometimes crash splitted area in pycharm #14

Open pyinto opened 4 years ago

pyinto commented 4 years ago

I don't use tabs (tabs limit is 1) and I always have two opend areas splited horizontally and when I use "open in splitted tab" action sometimes it leads to this error:

java.lang.ArrayIndexOutOfBoundsException: No such child: 0
    at java.desktop/java.awt.Container.getComponent(Container.java:350)
    at com.intellij.openapi.fileEditor.impl.EditorsSplitters$1Inner.collect(EditorsSplitters.java:740)
    at com.intellij.openapi.fileEditor.impl.EditorsSplitters$1Inner.collect(EditorsSplitters.java:743)
    at com.intellij.openapi.fileEditor.impl.EditorsSplitters$1Inner.access$700(EditorsSplitters.java:738)
    at com.intellij.openapi.fileEditor.impl.EditorsSplitters.getOrderedWindows(EditorsSplitters.java:761)
    at com.intellij.openapi.fileEditor.impl.FileEditorManagerImpl.getNextWindow(FileEditorManagerImpl.java:482)
    at org.para.plugin.OpenInSplittedTabBaseAction.receiveNextWindowPane(OpenInSplittedTabBaseAction.java:98)
    at org.para.plugin.OpenInSplittedTabBaseAction.actionPerformed(OpenInSplittedTabBaseAction.java:37)
    at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:280)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher$1.performAction(IdeKeyEventDispatcher.java:609)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.lambda$processAction$3(IdeKeyEventDispatcher.java:670)
    at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:94)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:669)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processAction(IdeKeyEventDispatcher.java:619)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.processActionOrWaitSecondStroke(IdeKeyEventDispatcher.java:516)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.inInitState(IdeKeyEventDispatcher.java:470)
    at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:219)
    at com.intellij.ide.IdeEventQueue.dispatchKeyEvent(IdeEventQueue.java:896)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:841)
    at com.intellij.ide.IdeEventQueue.lambda$null$8(IdeEventQueue.java:449)
    at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:741)
    at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$9(IdeEventQueue.java:448)
    at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:831)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:502)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
Screenshot 2020-07-09 at 18 57 39 Screenshot 2020-07-09 at 18 58 14