If user has configured PyDev for Jython development only,
there is no need to have a Python interpreter.
But when creating a new PyDev project, setting interpreter type = Jython
and selecting a valid Jython interpreter, there is an exception
thrown from PythonInterpreterManager:
PythonInterpreterManager:Interpreter is not properly configured!
Please go to window > preferences > PyDev > Python Interpreters and configure it.
If this is not supposed to be a Python project, change the project type on the
project properties to the project you want (e.g.: Jython project).
org.python.pydev.core.NotConfiguredInterpreterException: PythonInterpreterManager:Interpreter is not properly configured!
Please go to window > preferences > PyDev > Python Interpreters and configure it.
If this is not supposed to be a Python project, change the project type on the
project properties to the project you want (e.g.: Jython project).
at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreter(AbstractInterpreterManager.java:139)
at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreterInfo(AbstractInterpreterManager.java:190)
at org.python.pydev.ui.interpreters.AbstractInterpreterManager.getDefaultInterpreterInfo(AbstractInterpreterManager.java:1)
at org.python.pydev.plugin.nature.PythonNature.getProjectInterpreter(PythonNature.java:1074)
at org.python.pydev.plugin.nature.PythonPathNature.getVariableSubstitution(PythonPathNature.java:447)
at org.python.pydev.plugin.nature.PythonPathNature.getVariableSubstitution(PythonPathNature.java:432)
at org.python.pydev.core.docutils.StringSubstitution.<init>(StringSubstitution.java:29)
at org.python.pydev.plugin.nature.PythonPathNature.getOnlyProjectPythonPathStr(PythonPathNature.java:144)
at org.python.pydev.plugin.nature.PythonNature.rebuildPath(PythonNature.java:606)
at org.python.pydev.plugin.nature.PythonNature.init(PythonNature.java:563)
at org.python.pydev.plugin.nature.PythonNature.setProject(PythonNature.java:298)
at org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:232)
at org.eclipse.core.internal.resources.NatureManager$1.run(NatureManager.java:142)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.resources.NatureManager.configureNature(NatureManager.java:158)
at org.eclipse.core.internal.resources.NatureManager.configureNatures(NatureManager.java:203)
at org.eclipse.core.internal.resources.Project.basicSetDescription(Project.java:84)
at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1054)
at org.eclipse.core.internal.resources.Project.setDescription(Project.java:1082)
at org.python.pydev.plugin.nature.PythonNature.addNature(PythonNature.java:407)
at org.python.pydev.plugin.PyStructureConfigHelpers.createPydevProject(PyStructureConfigHelpers.java:166)
at org.python.pydev.plugin.PyStructureConfigHelpers.createPydevProject(PyStructureConfigHelpers.java:50)
at org.python.pydev.ui.wizards.project.PythonProjectWizard.createAndConfigProject(PythonProjectWizard.java:186)
at org.python.pydev.ui.wizards.project.PythonProjectWizard$1.execute(PythonProjectWizard.java:137)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
I think I am not seeing this exception (using pydev 2.1), but instead I get the new dialogue prompting me to setup a python interpreter.
My story is: I have a jython interpreter configured and then ask pydev to add the python nature to the project, specifying 'jython 2.5' as version. pydev when creating the .pydevproject first sets it up with a 'Default' interpreter version. Then I've even seen it change that to 'python 2.7'. Right after this pydev checks if the proper interpreters are configured for the nature. This triggers the dialogue asking for python. After the user is prompted for the wrong interpreter pydev finishes off the setup of the project nature by putting the right version 'jython 2.5' in place. This is obviously in the wrong order.