Can't add a new interpreter

Trying to add a new interpreter (virtualenv), and clicking on the 'Add' button in the settings dialog gave no response.  Found the following in my logs:

2011-06-06 15:35:38,960 [ 209854]  ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(1005,84),absolute(2612,230),button=1,modifiers=Button1,clickCount=3] on dialog1

java.util.NoSuchElementException

at java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.java:392)

at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:405)

at com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil.suggestAndAddSdk(SdkConfigurationUtil.java:299)

at com.jetbrains.python.configuration.PythonSdkConfigurable.e(PythonSdkConfigurable.java:212)

at com.jetbrains.python.configuration.PythonSdkConfigurable.access$000(PythonSdkConfigurable.java:38)

at com.jetbrains.python.configuration.PythonSdkConfigurable$3.actionPerformed(PythonSdkConfigurable.java:75)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:253)

at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)

at java.awt.Component.processMouseEvent(Component.java:6203)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:5968)

at java.awt.Container.processEvent(Container.java:2105)

at java.awt.Component.dispatchEventImpl(Component.java:4564)

at java.awt.Container.dispatchEventImpl(Container.java:2163)

at java.awt.Component.dispatchEvent(Component.java:4390)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)

at java.awt.Container.dispatchEventImpl(Container.java:2149)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4390)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)

at java.awt.EventQueue.access$000(EventQueue.java:96)

at java.awt.EventQueue$1.run(EventQueue.java:608)

at java.awt.EventQueue$1.run(EventQueue.java:606)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)

at java.awt.EventQueue$2.run(EventQueue.java:622)

at java.awt.EventQueue$2.run(EventQueue.java:620)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)

at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:662)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:511)

at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:411)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:194)

at java.awt.Dialog$1.run(Dialog.java:1072)

at java.awt.Dialog$3.run(Dialog.java:1126)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Dialog.java:1124)

at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(DialogWrapperPeerImpl.java:676)

at com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperPeerImpl.java:410)

at com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:1179)

at com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1164)

at com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.java:58)

at com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowSettingsUtilImpl.java:44)

at com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettingsAction.java:63)

at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter$1.run(ActionMenuItem.java:242)

at com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusManagerImpl.java:668)

at com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFocusManagerImpl.java:104)

at com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitter.actionPerformed(ActionMenuItem.java:228)

at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2012)

at com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed(ActionMenuItem.java:92)

at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2335)

at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:404)

at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.AbstractButton.doClick(AbstractButton.java:374)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:829)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:873)

at java.awt.Component.processMouseEvent(Component.java:6203)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:5968)

at java.awt.Container.processEvent(Container.java:2105)

at java.awt.Component.dispatchEventImpl(Component.java:4564)

at java.awt.Container.dispatchEventImpl(Container.java:2163)

at java.awt.Component.dispatchEvent(Component.java:4390)

at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)

at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)

at java.awt.Container.dispatchEventImpl(Container.java:2149)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4390)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)

at java.awt.EventQueue.access$000(EventQueue.java:96)

at java.awt.EventQueue$1.run(EventQueue.java:608)

at java.awt.EventQueue$1.run(EventQueue.java:606)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:116)

at java.awt.EventQueue$2.run(EventQueue.java:622)

at java.awt.EventQueue$2.run(EventQueue.java:620)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:105)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)

at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:662)

at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:511)

at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:411)

at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)

at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:275)

at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:200)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)

at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

2011-06-06 15:35:38,962 [ 209856]  ERROR - com.intellij.ide.IdeEventQueue - PyCharm 1.5  Build #PY-107.216

2011-06-06 15:35:38,962 [ 209856]  ERROR - com.intellij.ide.IdeEventQueue - JDK: 1.6.0_20

2011-06-06 15:35:38,962 [ 209856]  ERROR - com.intellij.ide.IdeEventQueue - VM: OpenJDK 64-Bit Server VM

2011-06-06 15:35:38,962 [ 209856]  ERROR - com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.

2011-06-06 15:35:38,962 [ 209856]  ERROR - com.intellij.ide.IdeEventQueue - OS: Linux

2011-06-06 15:35:38,962 [ 209856]  ERROR - com.intellij.ide.IdeEventQueue - Last Action: ShowSettings

Any ideas?

2 comments

Hello Wayne,

This problem is fixed in PyCharm 1.5.1 (build 107.223), available for download

at http://www.jetbrains.com/pycharm/download/index.html

Thanks for the report, and sorry for the problem!

Trying to add a new interpreter (virtualenv), and clicking on the

'Add' button in the settings dialog gave no response.  Found the

following in my logs:

2011-06-06 15:35:38,960   ERROR -

com.intellij.ide.IdeEventQueue - Error during dispatching of

java.awt.event.MouseEvent[MOUSE_RELEASED,(1005,84),absolute(2612,230),

button=1,modifiers=Button1,clickCount=3] on dialog1

java.util.NoSuchElementException

at

java.util.LinkedHashMap$LinkedHashIterator.nextEntry(LinkedHashMap.jav

a:392)

at java.util.LinkedHashMap$ValueIterator.next(LinkedHashMap.java:405)

at

com.intellij.openapi.projectRoots.impl.SdkConfigurationUtil.suggestAnd

AddSdk(SdkConfigurationUtil.java:299)

at

com.jetbrains.python.configuration.PythonSdkConfigurable.e(PythonSdkCo

nfigurable.java:212)

at

com.jetbrains.python.configuration.PythonSdkConfigurable.access$000(Py

thonSdkConfigurable.java:38)

at

com.jetbrains.python.configuration.PythonSdkConfigurable$3.actionPerfo

rmed(PythonSdkConfigurable.java:75)

at

javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:201

2)

at

javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java

:2335)

at

javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.

java:404)

at

javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at

javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonLi

stener.java:253)

at

java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:28

9)

at java.awt.Component.processMouseEvent(Component.java:6203)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:5968)

at java.awt.Container.processEvent(Container.java:2105)

at java.awt.Component.dispatchEventImpl(Component.java:4564)

at java.awt.Container.dispatchEventImpl(Container.java:2163)

at java.awt.Component.dispatchEvent(Component.java:4390)

at

java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)

at

java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)

at java.awt.Container.dispatchEventImpl(Container.java:2149)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4390)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)

at java.awt.EventQueue.access$000(EventQueue.java:96)

at java.awt.EventQueue$1.run(EventQueue.java:608)

at java.awt.EventQueue$1.run(EventQueue.java:606)

at java.security.AccessController.doPrivileged(Native Method)

at

java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCon

trolContext.java:105)

at

java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCon

trolContext.java:116)

at java.awt.EventQueue$2.run(EventQueue.java:622)

at java.awt.EventQueue$2.run(EventQueue.java:620)

at java.security.AccessController.doPrivileged(Native Method)

at

java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCon

trolContext.java:105)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)

at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:662)

at

com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:511)

at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:411)

at

com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)

at

java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea

d.java:275)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:200)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:194)

at java.awt.Dialog$1.run(Dialog.java:1072)

at java.awt.Dialog$3.run(Dialog.java:1126)

at java.security.AccessController.doPrivileged(Native Method)

at java.awt.Dialog.show(Dialog.java:1124)

at

com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog.show(Dialo

gWrapperPeerImpl.java:676)

at

com.intellij.openapi.ui.impl.DialogWrapperPeerImpl.show(DialogWrapperP

eerImpl.java:410)

at

com.intellij.openapi.ui.DialogWrapper.showAndGetOk(DialogWrapper.java:

1179)

at

com.intellij.openapi.ui.DialogWrapper.show(DialogWrapper.java:1164)

at

com.intellij.ide.actions.ShowSettingsUtilImpl.a(ShowSettingsUtilImpl.j

ava:58)

at

com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog(ShowS

ettingsUtilImpl.java:44)

at

com.intellij.ide.actions.ShowSettingsAction.actionPerformed(ShowSettin

gsAction.java:63)

at

com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte

r$1.run(ActionMenuItem.java:242)

at

com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext(FocusMan

agerImpl.java:668)

at

com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext(IdeFo

cusManagerImpl.java:104)

at

com.intellij.openapi.actionSystem.impl.ActionMenuItem$ActionTransmitte

r.actionPerformed(ActionMenuItem.java:228)

at

javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:201

2)

at

com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerfor

med(ActionMenuItem.java:92)

at

javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java

:2335)

at

javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.

java:404)

at

javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)

at javax.swing.AbstractButton.doClick(AbstractButton.java:374)

at

javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:82

9)

at

javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenu

ItemUI.java:873)

at java.awt.Component.processMouseEvent(Component.java:6203)

at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)

at java.awt.Component.processEvent(Component.java:5968)

at java.awt.Container.processEvent(Container.java:2105)

at java.awt.Component.dispatchEventImpl(Component.java:4564)

at java.awt.Container.dispatchEventImpl(Container.java:2163)

at java.awt.Component.dispatchEvent(Component.java:4390)

at

java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4461)

at

java.awt.LightweightDispatcher.processMouseEvent(Container.java:4125)

at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4055)

at java.awt.Container.dispatchEventImpl(Container.java:2149)

at java.awt.Window.dispatchEventImpl(Window.java:2478)

at java.awt.Component.dispatchEvent(Component.java:4390)

at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:649)

at java.awt.EventQueue.access$000(EventQueue.java:96)

at java.awt.EventQueue$1.run(EventQueue.java:608)

at java.awt.EventQueue$1.run(EventQueue.java:606)

at java.security.AccessController.doPrivileged(Native Method)

at

java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCon

trolContext.java:105)

at

java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCon

trolContext.java:116)

at java.awt.EventQueue$2.run(EventQueue.java:622)

at java.awt.EventQueue$2.run(EventQueue.java:620)

at java.security.AccessController.doPrivileged(Native Method)

at

java.security.AccessControlContext$1.doIntersectionPrivilege(AccessCon

trolContext.java:105)

at java.awt.EventQueue.dispatchEvent(EventQueue.java:619)

at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:662)

at

com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:511)

at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:411)

at

com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)

at

java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThrea

d.java:275)

at

java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.j

ava:200)

at

java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThrea

d.java:190)

at

java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:185)

at

java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:177)

at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

2011-06-06 15:35:38,962   ERROR -

com.intellij.ide.IdeEventQueue - PyCharm 1.5  Build #PY-107.216

2011-06-06 15:35:38,962   ERROR -

com.intellij.ide.IdeEventQueue - JDK: 1.6.0_20 2011-06-06 15:35:38,962

  ERROR - com.intellij.ide.IdeEventQueue - VM: OpenJDK 64-Bit

Server VM 2011-06-06 15:35:38,962   ERROR -

com.intellij.ide.IdeEventQueue - Vendor: Sun Microsystems Inc.

2011-06-06 15:35:38,962   ERROR -

com.intellij.ide.IdeEventQueue - OS: Linux 2011-06-06 15:35:38,962 [

209856]  ERROR - com.intellij.ide.IdeEventQueue - Last Action:

ShowSettings

Any ideas?

---

Original message URL:

http://devnet.jetbrains.net/message/5305598#5305598

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Thanks for the quick fix!

0

Please sign in to leave a comment.