Compare Directories plugin exception : IDEA 9572
When trying to compare 2 directories using the latest EAP, CompareDirectory fails with the following exception
Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(72,308),absolute(144,358),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###: com.intellij.ui.content.ContentManager.setSelectedContent(Lcom/intellij/ui/content/Content;Z)V
java.lang.NoSuchMethodError: com.intellij.ui.content.ContentManager.setSelectedContent(Lcom/intellij/ui/content/Content;Z)V
at org.intellij.idea.dirdiff.view.CompareDirectoryView.addPanel(CompareDirectoryView.java:50)
at org.intellij.idea.dirdiff.action.CompareDirectoryAction.actionPerformed(CompareDirectoryAction.java:134)
at org.intellij.idea.dirdiff.action.CompareDirectoryMenuBarAction.actionPerformed(CompareDirectoryMenuBarAction.java:28)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:17)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:41)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:65)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:129)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:5)
at java.awt.Component.processMouseEvent(Component.java:6134)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5899)
at java.awt.Container.processEvent(Container.java:2023)
at java.awt.Component.dispatchEventImpl(Component.java:4501)
at java.awt.Container.dispatchEventImpl(Container.java:2081)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4301)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3965)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3895)
at java.awt.Container.dispatchEventImpl(Container.java:2067)
at java.awt.Window.dispatchEventImpl(Window.java:2458)
at java.awt.Component.dispatchEvent(Component.java:4331)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:35)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:223)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:217)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
请先登录再写评论。
Looking further here I don't understand what happens
that method still exists in 9572 and indeed works fine when debugging the plugin.
Would there be a Clasloading problem somewhere ?
Hello Thibaut,
The return type of that method changed from void to com.intellij.openapi.util.ActionCallback, thus
the code is still source-compatible but it needs to be recompiled to match the new signature.
Sascha
doh I missed that one ... thanks for pointing !
Olivier , I hope you're listening to this somewhere =)