MKS Plugin error in IDEA 7.0M1

I recently downloaded IDEA 7.0M1 and installed the MKS plugin (http://plugins.intellij.net/plugin/?id=70). MKS is a version control product and the plugin worked properly in v5.0 and v6.0 of Intellij. Unfortunately, it now generates the error seen below. Is there an easy way to fix this, outside of contacting the plugin developer (who hasn't responded to my inquiries in the past).

update failed for AnAction with ID=MKS.CheckoutAction: com/intellij/openapi/vcs/VcsManager
java.lang.NoClassDefFoundError: com/intellij/openapi/vcs/VcsManager
at org.intellij.vcs.mks.actions.BasicAction.update(BasicAction.java:108)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:35)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:56)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:81)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:61)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:67)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:41)
at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent$MyEditorMouseListener.invokePopup(TextEditorComponent.java:1)
at com.intellij.util.EditorPopupHandler.a(EditorPopupHandler.java:10)
at com.intellij.util.EditorPopupHandler.mouseReleased(EditorPopupHandler.java:6)
at com.intellij.openapi.editor.impl.EditorImpl.c(EditorImpl.java:441)
at com.intellij.openapi.editor.impl.EditorImpl.access$7400(EditorImpl.java:63)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
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:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:44)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:118)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:6)
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)



java.lang.NoClassDefFoundError: com/intellij/openapi/vcs/VcsManager
at org.intellij.vcs.mks.actions.BasicAction.update(BasicAction.java:108)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:35)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:56)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:81)
at com.intellij.openapi.actionSystem.impl.Utils.expandActionGroup(Utils.java:61)
at com.intellij.openapi.actionSystem.impl.Utils.fillMenu(Utils.java:67)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu$MyPopupMenuListener.popupMenuWillBecomeVisible(ActionPopupMenuImpl.java:0)
at javax.swing.JPopupMenu.firePopupMenuWillBecomeVisible(JPopupMenu.java:674)
at javax.swing.JPopupMenu.setVisible(JPopupMenu.java:788)
at javax.swing.JPopupMenu.show(JPopupMenu.java:951)
at com.intellij.openapi.actionSystem.impl.ActionPopupMenuImpl$MyMenu.show(ActionPopupMenuImpl.java:2)
at com.intellij.openapi.fileEditor.impl.text.TextEditorComponent$MyEditorMouseListener.invokePopup(TextEditorComponent.java:1)
at com.intellij.util.EditorPopupHandler.a(EditorPopupHandler.java:10)
at com.intellij.util.EditorPopupHandler.mouseReleased(EditorPopupHandler.java:6)
at com.intellij.openapi.editor.impl.EditorImpl.c(EditorImpl.java:441)
at com.intellij.openapi.editor.impl.EditorImpl.access$7400(EditorImpl.java:63)
at com.intellij.openapi.editor.impl.EditorImpl$MyMouseAdapter.mouseReleased(EditorImpl.java)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
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:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:44)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:118)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:6)
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)

14 comments

Hello Bryan,

I recently downloaded IDEA 7.0M1 and installed the MKS plugin
(http://plugins.intellij.net/plugin/?id=70). MKS is a version control
product and the plugin worked properly in v5.0 and v6.0 of Intellij.
Unfortunately, it now generates the error seen below. Is there an
easy way to fix this, outside of contacting the plugin developer (who
hasn't responded to my inquiries in the past).

update failed for AnAction with ID=MKS.CheckoutAction:
com/intellij/openapi/vcs/VcsManager
java.lang.NoClassDefFoundError: com/intellij/openapi/vcs/VcsManager
at
org.intellij.vcs.mks.actions.BasicAction.update(BasicAction.java:108)


No, there is no easy way to fix this, short of fixing the plugin. As far
as I know, the MKS plugin is currently being worked on to add 7.0M1 compatibility:
http://intellij.net/forums/thread.jspa?threadID=266880&tstart=0

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Unfortunately, it now generates the error seen
below. Is there an easy way to fix this, outside of
contacting the plugin developer (who hasn't
responded to my inquiries in the past).



Yes, you can use my "private" version of the MKS plugin (attached) at your own risk.
Unfortunately I have not had enough time for taking over maintenance of the plugin properly, but I have hacked around API change related problems that have come up in the past months, and currently my version of the plugin is working quite decently.

Regards,
Jens



Attachment(s):
MksIntegration.zip
0

If anyone is interested i've also made some changes to it.
Both for 7.0 compliance, and I also added a "view changes" option in the MKS menu, that allows to see ANY difference between the local sandbox and the MKS project. Something i never managed to achieve using MKS client.

The information displays in the MKS tool tab , using a table
There is limited support for mks actions on the items displayed, but only for one item at a time (shoudl be easy to extend it for multiselections though if it seems usefull).

Remember this is provided "as is", and developped on my spare time ;)

I'm attaching a screenshot of the changes tab, the sources i'm working with (ideamksplugin.zip) and the deployable plugin (MKSPlugin).
If we are several interested, it would maybe be a good idea to start a shared project (googlecode ?)



Attachment(s):
ideamksplugin.zip
MKS_changes.jpg
MKSPlugin.zip
0

It looks like I'm getting close. The sub-menu displays fine, but when I select any of the options (i.e., Check Out), the following error appears:

Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(104,150),button=1,modifiers=Button1,clickCount=1] on ###overrideRedirect###: com.intellij.openapi.vcs.AbstractVcsHelper.startVcsAction(Ljava/lang/String;)Lcom/intellij/localvcs/integration/LocalHistoryAction;
java.lang.NoSuchMethodError: com.intellij.openapi.vcs.AbstractVcsHelper.startVcsAction(Ljava/lang/String;)Lcom/intellij/localvcs/integration/LocalHistoryAction;
at org.intellij.vcs.mks.actions.BasicAction.actionPerformed(Unknown Source)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:1)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:13)
at com.intellij.ui.plaf.beg.BegMenuItemUI.a(BegMenuItemUI.java:180)
at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:122)
at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:6)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
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:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:44)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:118)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:6)
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)

0

So close, yet so far. The MKS plugin generates the following error:

FAILED Starting MKS client: Can't load library: C:\Documents and Settings\A6253567.HBEU\Progs\MKS\IntegrityClient\bin\mkscmapi.dll
java.lang.UnsatisfiedLinkError: Can't load library: C:\Documents and Settings\A6253567.HBEU\Progs\MKS\IntegrityClient\bin\mkscmapi.dll
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1650)
at java.lang.Runtime.load0(Runtime.java:769)
at java.lang.Runtime.load(Runtime.java:757)
at org.intellij.vcs.mks.MKSHelper.startClient(MKSHelper.java:136)
at org.intellij.vcs.mks.MksVcs.initComponent(MksVcs.java:81)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:150)
at com.intellij.openapi.components.impl.ComponentManagerImpl.access$1100(ComponentManagerImpl.java:73)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:6)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:25)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162)
at org.picocontainer.defaults.CollectionComponentParameter.getArrayInstance(CollectionComponentParameter.java:268)
at org.picocontainer.defaults.CollectionComponentParameter.resolveInstance(CollectionComponentParameter.java:127)
at org.picocontainer.defaults.ComponentParameter.resolveInstance(ComponentParameter.java:116)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getConstructorArguments(ConstructorInjectionComponentAdapter.java:257)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:217)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:2)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:25)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162)
at org.picocontainer.defaults.BasicComponentParameter.resolveInstance(BasicComponentParameter.java:77)
at org.picocontainer.defaults.ComponentParameter.resolveInstance(ComponentParameter.java:114)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getConstructorArguments(ConstructorInjectionComponentAdapter.java:257)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:217)
at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
at org.picocontainer.defaults.DecoratingComponentAdapter.getComponentInstance(DecoratingComponentAdapter.java:60)
at org.picocontainer.defaults.CachingComponentAdapter.getComponentInstance(CachingComponentAdapter.java:58)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:2)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:25)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:86)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:51)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:64)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:98)
at com.intellij.openapi.project.impl.ProjectImpl.init(ProjectImpl.java:4)
at com.intellij.openapi.components.impl.stores.ProjectStoreImpl.loadProject(ProjectStoreImpl.java:33)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProject(ProjectManagerImpl.java:57)
at com.intellij.openapi.project.impl.ProjectManagerImpl.loadAndOpenProject(ProjectManagerImpl.java:55)
at com.intellij.ide.impl.ProjectUtil.openProject(ProjectUtil.java:23)
at com.intellij.idea.IdeaApplication.c(IdeaApplication.java:39)
at com.intellij.idea.IdeaApplication.access$400(IdeaApplication.java:41)
at com.intellij.idea.IdeaApplication$IdeStarter$2.run(IdeaApplication.java:6)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:15)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:44)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:83)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:6)
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)

0

This is probably on 6913, not Selena M1, right? Anyway, it will be
fixed in next EAP.

0

I'm using Intellij IDEA 7.0M1, Build #6819 (see attached screenshot).



Attachment(s):
idea.JPG
0

sorry about that , looks like i left hardcoded references to my mks install folder.

You probably already found out by now, but this method needs update : org.intellij.vcs.mks.MKSHelper.startClient. Not sure if those dlls are on the PATH or not ...
but in any case

has no chance to work obviously ;)

0

i'll try to reproduce this tomorrow, but i don't get this on my IDEA 7 M1 installation

0

If we are several interested, it would maybe be a
good idea to start a shared project (googlecode ?)


I would definitely like to do some work on it (I'll be stuck with MKS for at least another year), but I don't have any experience with googlecode. If you have, can you set up a project?

Regards,
Jens

0

Can you re-post the plugin, assuming you had a chance to update the code?

0

I'm sorry i didn't have the time to do it.
I'll upload it at googlecode ASAP, but not today i'm afraid.

I've already created the project, but need some time to upload it properly
http://code.google.com/p/ideamksplugin/

0

I've just uploaded the initial version (corresponding to the one currently available using the plugin manager).

I've tried to create a maven compliant pom , and it seems to work.
Note : the currently available version is only compliant with IDEA 5.x

I'll update it in the following days, with both IDEA 6/7 compliance, and the "view changes" thing i was talking about above

0

Please sign in to leave a comment.