guymahieu / ivyidea

Resolve dependencies for your Intellij projects using Ivy
Apache License 2.0
13 stars 18 forks source link

Cannot add IvyIDEA to more than one module #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It works great when I add it to one module, but when I try to add another 
IvyIDEA facet to another module the configuration screen doesn't update 
and I get:

Argument 0 for @NotNull parameter of 
org/clarent/ivyidea/ivy/IvyUtil.loadConfigurations must not be null
java.lang.IllegalArgumentException: Argument 0 for @NotNull parameter of 
org/clarent/ivyidea/ivy/IvyUtil.loadConfigurations must not be null
    at org.clarent.ivyidea.ivy.IvyUtil.loadConfigurations(IvyUtil.java)
    at 
org.clarent.ivyidea.intellij.facet.ui.IvyIdeaFacetEditorTab.reset
(IvyIdeaFacetEditorTab.java:154)
    at com.intellij.openapi.options.UnnamedConfigurableGroup.reset
(UnnamedConfigurableGroup.java:52)
    at com.intellij.facet.impl.ui.FacetEditor.reset
(FacetEditor.java:59)
    at 
com.intellij.facet.impl.ProjectFacetsConfigurator.getOrCreateEditor
(ProjectFacetsConfigurator.java:86)
    at 
com.intellij.openapi.roots.ui.configuration.projectRoot.FacetConfigurable.g
etEditor(FacetConfigurable.java:10)
    at 
com.intellij.openapi.roots.ui.configuration.projectRoot.FacetConfigurable.c
reateOptionsPanel(FacetConfigurable.java:15)
    at com.intellij.openapi.ui.NamedConfigurable.createComponent
(NamedConfigurable.java:76)
    at com.intellij.openapi.ui.MasterDetailsComponent.updateSelection
(MasterDetailsComponent.java:536)
    at 
com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConf
igurable.a(ModuleStructureConfigurable.java:24)
    at 
com.intellij.openapi.roots.ui.configuration.projectRoot.ModuleStructureConf
igurable.updateSelection(ModuleStructureConfigurable.java:43)
    at 
com.intellij.openapi.ui.MasterDetailsComponent.updateSelectionFromTree
(MasterDetailsComponent.java:181)
    at com.intellij.openapi.ui.MasterDetailsComponent.access$200
(MasterDetailsComponent.java:61)
    at com.intellij.openapi.ui.MasterDetailsComponent$5.scrollToSource
(MasterDetailsComponent.java:159)
    at com.intellij.ui.AutoScrollToSourceHandler$7.run
(AutoScrollToSourceHandler.java:120)
    at 
com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run
(LaterInvocator.java:16)
    at java.awt.event.InvocationEvent.dispatch
(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:63)
    at com.intellij.ide.IdeEventQueue.dispatchEvent
(IdeEventQueue.java:87)
    at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:177)
    at java.awt.Dialog$1.run(Dialog.java:1045)
    at java.awt.Dialog$3.run(Dialog.java:1097)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1095)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show
(DialogWrapperPeerImpl.java:22)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show
(DialogWrapperPeerImpl.java:18)
    at com.intellij.openapi.ui.DialogWrapper.show
(DialogWrapper.java:813)
    at com.intellij.openapi.options.ex.ControlPanelSettingsEditor.b
(ControlPanelSettingsEditor.java:122)
    at 
com.intellij.openapi.options.ex.ControlPanelSettingsEditor.access$300
(ControlPanelSettingsEditor.java:141)
    at 
com.intellij.openapi.options.ex.ControlPanelSettingsEditor$MyActionButton$1
.mouseReleased(ControlPanelSettingsEditor.java:8)
    at java.awt.Component.processMouseEvent(Component.java:6041)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
    at java.awt.Component.processEvent(Component.java:5806)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4413)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2440)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:118)
    at com.intellij.ide.IdeEventQueue.dispatchEvent
(IdeEventQueue.java:87)
    at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:177)
    at java.awt.Dialog$1.run(Dialog.java:1045)
    at java.awt.Dialog$3.run(Dialog.java:1097)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Dialog.show(Dialog.java:1095)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show
(DialogWrapperPeerImpl.java:22)
    at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show
(DialogWrapperPeerImpl.java:18)
    at com.intellij.openapi.ui.DialogWrapper.show
(DialogWrapper.java:813)
    at 
com.intellij.ide.actions.ShowSettingsUtilImpl.showControlPanelOptions
(ShowSettingsUtilImpl.java:16)
    at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog
(ShowSettingsUtilImpl.java:14)
    at com.intellij.ide.actions.ShowSettingsAction.actionPerformed
(ShowSettingsAction.java:2)
    at com.intellij.openapi.actionSystem.impl.ActionButton.a
(ActionButton.java:104)
    at com.intellij.openapi.actionSystem.impl.ActionButton.a
(ActionButton.java:102)
    at 
com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent
(ActionButton.java:108)
    at java.awt.Component.processEvent(Component.java:5806)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4413)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.LightweightDispatcher.retargetMouseEvent
(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent
(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent
(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2440)
    at java.awt.Component.dispatchEvent(Component.java:4243)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at com.intellij.ide.IdeEventQueue.c(IdeEventQueue.java:146)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:118)
    at com.intellij.ide.IdeEventQueue.dispatchEvent
(IdeEventQueue.java:87)
    at java.awt.EventDispatchThread.pumpOneEventForFilters
(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter
(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents
(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Original issue reported on code.google.com by morgan...@gmail.com on 4 Feb 2009 at 9:07

GoogleCodeExporter commented 8 years ago
This indeed seems to be a bug. 

You can workaround this by creating a file called ivy.xml in that failing 
module in
IntelliJ. The IvyIDEA facet will be autodetected and a default configuration 
will be
created. From then on you can configure IvyIDEA for that module.

Original comment by guy.mah...@gmail.com on 5 Feb 2009 at 5:30

GoogleCodeExporter commented 8 years ago

Original comment by guy.mah...@gmail.com on 5 Feb 2009 at 5:38

GoogleCodeExporter commented 8 years ago
This affects manually added IvyIDEA facets.
Fixed in the next release.

Original comment by guy.mah...@gmail.com on 7 Feb 2009 at 5:35