t3hnar / CmdSupport

Cmd support plugin for Intellij Idea
Apache License 2.0
49 stars 10 forks source link

[Ljava.lang.Object; cannot be cast to [Lcom.intellij.openapi.vfs.VirtualFile; #22

Open rettal opened 9 years ago

rettal commented 9 years ago

Hi, I Keep getting the following exception:

update failed for AnAction with ID=Cmd.RunCmdScript: [Ljava.lang.Object; cannot be cast to [Lcom.intellij.openapi.vfs.VirtualFile; java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Lcom.intellij.openapi.vfs.VirtualFile; at ua.t3hnar.plugins.cmdsupport.actions.RunCmdScriptAction.compatibleFiles(RunCmdScriptAction.scala:32) at ua.t3hnar.plugins.cmdsupport.actions.RunCmdScriptAction.update(RunCmdScriptAction.scala:27) at com.intellij.openapi.actionSystem.ex.ActionUtil.performDumbAwareUpdate(ActionUtil.java:113) at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:187) at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:138) at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163) at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:163) at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:85) at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:279) at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:96) at com.intellij.ide.ui.customization.CustomizationUtil$3.invokePopup(CustomizationUtil.java:284) at com.intellij.ui.PopupHandler.mouseReleased(PopupHandler.java:55) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290) at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289) at java.awt.Component.processMouseEvent(Component.java:6516) at javax.swing.JComponent.processMouseEvent(JComponent.java:3320) at com.intellij.ui.treeStructure.Tree.processMouseEvent(Tree.java:418) at com.intellij.ide.dnd.aware.DnDAwareTree.processMouseEvent(DnDAwareTree.java:52) at java.awt.Component.processEvent(Component.java:6281) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4872) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4698) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422) at java.awt.Container.dispatchEventImpl(Container.java:2273) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4698) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:697) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:520) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:335) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

Any ideas?

Version: IntelliJ 13.1.6