Project: aptanastudio
Issue APSTUD-5020: PyDev cannot add a Python Interepreter in Juno
Fabio Zadrozny asked (on Twitter) that I lodge this bug report here. I downloaded and installed Eclipse 4.2 Juno. I downloaded and installed PyDev. When I try and create a Python interpreter within PyDev (i.e. connect PyDev to /usr/bin/python2.7) it correctly picks up everything on the PYTHONPATH but on clicking "yes", I get a NPE: java.lang.NullPointerException org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor.getNewInputObject(AbstractInterpreterEditor.java:1009) org.python.copiedfromeclipsesrc.PythonListEditor.addPressed(PythonListEditor.java:134) org.python.copiedfromeclipsesrc.PythonListEditor$1.widgetSelected(PythonListEditor.java:225) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179) org.eclipse.jface.window.Window.runEventLoop(Window.java:825) org.eclipse.jface.window.Window.open(Window.java:801) org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) org.eclipse.jface.action.Action.runWithEvent(Action.java:498) org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:601) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) org.eclipse.equinox.launcher.Main.run(Main.java:1438) org.eclipse.equinox.launcher.Main.main(Main.java:1414) Also: java.lang.RuntimeException: Information about process of adding new interpreter: - Opening dialog to request executable (or jar). - Chosen interpreter (name and file):'Tuple [Python 2.7 -- /usr/bin/python2.7] - Ok, file is non-null. Getting info on:/usr/bin/python2.7 - Beggining task:Getting libs totalWork:100 - Setting task name:Mounting executable string... - Setting task name:Executing: /usr/bin/python2.7 -u /home/users/russel/lib.Linux.x86_64/eclipse-java-4.2/plugins/org.python.pydev_2.6.0.2012062818/pysrc/interpreterInfo.py - Setting task name:Making pythonpath environment... /usr/bin/python2.7 -u /home/users/russel/lib.Linux.x86_64/eclipse-java-4.2/plugins/org.python.pydev_2.6.0.2012062818/pysrc/interpreterInfo.py - Setting task name:Making exec... /usr/bin/python2.7 -u /home/users/russel/lib.Linux.x86_64/eclipse-java-4.2/plugins/org.python.pydev_2.6.0.2012062818/pysrc/interpreterInfo.py - Setting task name:Reading output... - Setting task name:Waiting for process to finish. org.python.pydev.core.log.Log.logInfo(Log.java:112) org.python.pydev.ui.pythonpathconf.AbstractInterpreterEditor.getNewInputObject(AbstractInterpreterEditor.java:1096) org.python.copiedfromeclipsesrc.PythonListEditor.addPressed(PythonListEditor.java:134) org.python.copiedfromeclipsesrc.PythonListEditor$1.widgetSelected(PythonListEditor.java:225) org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179) org.eclipse.jface.window.Window.runEventLoop(Window.java:825) org.eclipse.jface.window.Window.open(Window.java:801) org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.open(WorkbenchPreferenceDialog.java:215) org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65) org.eclipse.jface.action.Action.runWithEvent(Action.java:498) org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584) org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501) org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411) org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554) org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1022) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:916) org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) org.eclipse.ui.internal.Workbench$5.run(Workbench.java:585) org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:540) org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:601) org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) org.eclipse.equinox.launcher.Main.run(Main.java:1438) org.eclipse.equinox.launcher.Main.main(Main.java:1414)
Story points: 5