Upgrading VCS Plugin to IDEA 11 - unsatisfied dependencies

Hi,

I have a VCS plugin which works fine with IntelliJ IDEA 10.x I'm currently trying to upgrade it to work with IDEA 11.

When I try that it complains about unsatisfied dependency. I'm trying to base my changes on the GitVcs plugin, but the lack of documentation is making it a bit hard.
Does any have any pointers to help?


[  65313]  ERROR - ntellij.openapi.vcs.impl.VcsEP - com.cm_logic.intellij.rtc.RtcVcs has unsatisfied dependency: class com.intellij.openapi.vcs.changes.ChangeListManager among unsatisfiable dependencies: [[interface com.intellij.openapi.project.Project, interface com.intellij.util.messages.MessageBus, class com.cm_logic.intellij.rtc.config.RtcVcsSettings, class com.intellij.openapi.vcs.changes.ChangeListManager, class com.intellij.openapi.vcs.changes.VcsDirtyScopeManager, class com.intellij.openapi.vcs.ProjectLevelVcsManager], [interface com.intellij.openapi.project.Project, class com.cm_logic.intellij.rtc.changes.RtcChangeProvider, class com.cm_logic.intellij.rtc.checkin.RtcCheckinEnvironment, class com.intellij.openapi.vcs.ProjectLevelVcsManager, interface com.intellij.openapi.vcs.annotate.AnnotationProvider, class com.cm_logic.intellij.rtc.diff.RtcDiffProvider, class com.cm_logic.intellij.rtc.history.RtcHistoryProvider, interface com.intellij.openapi.vcs.rollback.RollbackEnvironment, class com.cm_logic.intellij.rtc.config.RtcVcsSettings]] where AreaPicoContainer[Project (Default) Default (Template) Project] was the leaf container being asked for dependencies.
org.picocontainer.defaults.UnsatisfiableDependenciesException: com.cm_logic.intellij.rtc.RtcVcs has unsatisfied dependency: class com.intellij.openapi.vcs.changes.ChangeListManager among unsatisfiable dependencies: [[interface com.intellij.openapi.project.Project, interface com.intellij.util.messages.MessageBus, class com.cm_logic.intellij.rtc.config.RtcVcsSettings, class com.intellij.openapi.vcs.changes.ChangeListManager, class com.intellij.openapi.vcs.changes.VcsDirtyScopeManager, class com.intellij.openapi.vcs.ProjectLevelVcsManager], [interface com.intellij.openapi.project.Project, class com.cm_logic.intellij.rtc.changes.RtcChangeProvider, class com.cm_logic.intellij.rtc.checkin.RtcCheckinEnvironment, class com.intellij.openapi.vcs.ProjectLevelVcsManager, interface com.intellij.openapi.vcs.annotate.AnnotationProvider, class com.cm_logic.intellij.rtc.diff.RtcDiffProvider, class com.cm_logic.intellij.rtc.history.RtcHistoryProvider, interface com.intellij.openapi.vcs.rollback.RollbackEnvironment, class com.cm_logic.intellij.rtc.config.RtcVcsSettings]] where AreaPicoContainer[Project (Default) Default (Template) Project] was the leaf container being asked for dependencies.
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getGreediestSatisfiableConstructor(ConstructorInjectionComponentAdapter.java:191)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter$1.run(ConstructorInjectionComponentAdapter.java:210)
    at org.picocontainer.defaults.ThreadLocalCyclicDependencyGuard.observe(ThreadLocalCyclicDependencyGuard.java:53)
    at org.picocontainer.defaults.ConstructorInjectionComponentAdapter.getComponentInstance(ConstructorInjectionComponentAdapter.java:248)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:70)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:63)
    at com.intellij.openapi.extensions.AbstractExtensionPointBean.instantiate(AbstractExtensionPointBean.java:58)
    at com.intellij.openapi.vcs.impl.VcsEP.getVcs(VcsEP.java:61)
    at com.intellij.openapi.vcs.impl.projectlevelman.AllVcses.getByName(AllVcses.java:96)
    at com.intellij.openapi.vcs.impl.ProjectLevelVcsManagerImpl.findVcsByName(ProjectLevelVcsManagerImpl.java:172)
    at com.intellij.openapi.vcs.configurable.VcsManagerConfigurable.createVcsConfigurableWrapper(VcsManagerConfigurable.java:160)
    at com.intellij.openapi.vcs.configurable.VcsManagerConfigurable.buildConfigurables(VcsManagerConfigurable.java:143)
    at com.intellij.openapi.options.SearchableConfigurable$Parent$Abstract.getConfigurables(SearchableConfigurable.java:76)
    at com.intellij.openapi.options.newEditor.OptionsTree.buildChildren(OptionsTree.java:503)
    at com.intellij.openapi.options.newEditor.OptionsTree.access$500(OptionsTree.java:55)
    at com.intellij.openapi.options.newEditor.OptionsTree$EditorNode.buildChildren(OptionsTree.java:533)
    at com.intellij.openapi.options.newEditor.OptionsTree$EditorNode.buildChildren(OptionsTree.java:520)
    at com.intellij.ui.treeStructure.CachingSimpleNode.getChildren(CachingSimpleNode.java:36)
    at com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements(SimpleTreeStructure.java:25)
    at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.fillChildren(FilteringTreeStructure.java:57)
    at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.fillChildren(FilteringTreeStructure.java:60)
    at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.refilter(FilteringTreeStructure.java:51)
    at com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.<init>(FilteringTreeStructure.java:45)
    at com.intellij.ui.treeStructure.filtered.FilteringTreeBuilder.<init>(FilteringTreeBuilder.java:53)
    at com.intellij.openapi.options.newEditor.OptionsTree$MyBuilder.<init>(OptionsTree.java:752)
    at com.intellij.openapi.options.newEditor.OptionsTree.<init>(OptionsTree.java:91)
    at com.intellij.openapi.options.newEditor.OptionsEditor$3.<init>(OptionsEditor.java:142)
    at com.intellij.openapi.options.newEditor.OptionsEditor.<init>(OptionsEditor.java:142)
    at com.intellij.openapi.options.newEditor.OptionsEditorDialog.createCenterPanel(OptionsEditorDialog.java:83)
    at com.intellij.openapi.ui.DialogWrapper.init(DialogWrapper.java:1029)
    at com.intellij.openapi.options.newEditor.OptionsEditorDialog.init(OptionsEditorDialog.java:72)
    at com.intellij.openapi.options.newEditor.OptionsEditorDialog.<init>(OptionsEditorDialog.java:57)
    at com.intellij.ide.actions.ShowSettingsUtilImpl._showSettingsDialog(ShowSettingsUtilImpl.java:65)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:47)
    at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:63)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:260)
    at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:861)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:226)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:100)
    at com.intellij.ui.plaf.beg.BegMenuItemUI.doClick(BegMenuItemUI.java:512)
    at com.intellij.ui.plaf.beg.BegMenuItemUI.access$300(BegMenuItemUI.java:44)
    at com.intellij.ui.plaf.beg.BegMenuItemUI$MyMouseInputHandler.mouseReleased(BegMenuItemUI.java:532)
    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.defaultDispatchEvent(IdeEventQueue.java:694)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:530)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:416)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:374)
    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)
[  65313]  ERROR - ntellij.openapi.vcs.impl.VcsEP - IntelliJ IDEA 11.0.2  Build #IC-111.277
[  65313]  ERROR - ntellij.openapi.vcs.impl.VcsEP - JDK: 1.6.0_10-rc
[  65313]  ERROR - ntellij.openapi.vcs.impl.VcsEP - VM: Java HotSpot(TM) Client VM
[  65313]  ERROR - ntellij.openapi.vcs.impl.VcsEP - Vendor: Sun Microsystems Inc.
[  65313]  ERROR - ntellij.openapi.vcs.impl.VcsEP - OS: Windows XP
[  65313]  ERROR - ntellij.openapi.vcs.impl.VcsEP - Last Action: ShowSettings

1 comment
Comment actions Permalink

Hi,

Ignore. I figured out what was wrong. The object was a field in my instantiation method (without an implementation) and IDEA 11 doesn't like that.

Sean.

0

Please sign in to leave a comment.