Screaming at the Silicon

Archive - Fedi

Pycharm Graying Out the Run Button

I am troubleshooting an issue where PyCharm isn't detecting environment variables that are definitely set and were working moments ago. While troubleshooting this, I ran into a problem where it suddenly grays out the run button and I can no longer run the main file from the IDE.

I suspect it's one of those issues that can be solved by invalidating JetBrains cache's, but I didn't think about that until after solving the problem from an alternative I found through search. Crazy thing is I had even rebooted by computer before doing this (I was due for one from updates anyway)

1.) open another repository / project

    File > Open > select project > OK

2.) If you have the pop-up to choose "This Window or "New Window", chose "This Window"

3.) Open the repository / project that had the greyed out run button

4.) It should be green by now

From: https://stackoverflow.com/questions/8364483/why-is-the-run-option-disabled-on-pycharm