Default Run configs lost

There used to be a few pre-configured default Run configurations that are now gone somehow in my 1.0 install (OS X Leopard). In particular, the default option to run the current script isn't there (I'm pretty sure this existed in earlier builds, and in my 1.0 install. Maybe I'm just dreaming?). When I went to 'Edit Configurations' this morning, there was *nothing* in the left pane at all. I checked the Help to see if the pre-configured setup or the env vars used to reference the current script were documented, but I didn't see them. Right clicking in the code area of the editor and hitting 'Run' results in py.test running. Can someone tell me how to set up a configuration that will run the current script when I click the green triangle in the toolbar?

1 comment

Hello Brian,

There are no pre-configured run configurations in PyCharm. Trying to run

the current file uses the py.test run configuration if you have py.test installed

and the file looks like a test file (has functions with names starting with

"test" or classes with names starting with "Test"). To create a script run

configuration manually, open the Run/Debug Configurations dialog (Run | Edit

Configurations) and add a configuration of type Python.

There used to be a few pre-configured default Run configurations that

are now gone somehow in my 1.0 install (OS X Leopard). In particular,

the default option to run the current script isn't there (I'm pretty

sure this existed in earlier builds, and in my 1.0 install. Maybe I'm

just dreaming?). When I went to 'Edit Configurations' this morning,

there was nothing in the left pane at all. I checked the Help to see

if the pre-configured setup or the env vars used to reference the

current script were documented, but I didn't see them. Right clicking

in the code area of the editor and hitting 'Run' results in py.test

running. Can someone tell me how to set up a configuration that will

run the current script when I click the green triangle in the toolbar?

--

Dmitry Jemerov

Development Lead

JetBrains, Inc.

http://www.jetbrains.com/

"Develop with Pleasure!"

0

Please sign in to leave a comment.