Pycharm Keeps Running The Previous Program?

Answered

I'm a new user of Pycharm and up to now have had no issues with it. Today however, I installed the newest version of Python (3.6) and a compatible version of Pygame to work with. All installed OK and I did a short Pygame program to blit a string of text to the screen. I copied the program from a book and it ran fine. I decided to experiment and changed the co-ordinate values to print the text on a different part of the screen. I ran the program again but the text remained in the original position. I tried a few times and even checked online to make sure that the info in the book was correct, which it was. Suspecting that there was something amiss I changed the window title and the text in my program and then saved and ran the program again. Pycharm ran the previous version again despite the code having been changed. I ran the code in the Python IDE and it was fine. I even closed Pycharm down and restarted the PC but Pycharm still ran the old version of the program when I tried the newer version! It was as though the original program had become stuck somewhere in Pycharm and wouldn't shift regardless of what I did? I was running it on Windows 10 and using the most recent  version of Pycharm. Any Ideas please?

 

0
5 comments

Thank you for the report. Could you please record a small screencast that shows the problem to let us check how it looks on your end? Thank you in advance.

0
Avatar
Permanently deleted user

I'm having the same issue here.

I changed a lot of code (Django) but PyCHarm keeps running the same code. I even deleted my database and migrations to makemigrations again but 'no changes detected', and it keeps looking to the database that has been deleted!!

0

The first thing I would check is the run/debug configuration to make sure it's running the correct target and uses the correct interpreter.

0
Avatar
Permanently deleted user

I foud the problem.. It was me sorry.

I just moved all project fils to another location but that went fine. The problem was when I ran the django commands in the terminal. They were referecing the old path to manage.py, which wasn't deleted. So all files, including the database, were still there, and the program was reading those files, not the ones I changed...

0

I'm currently experiencing the same problem! It seems Pycharm isn't detecting the changes I made to the code and continues to run the old code. I managed to get my new code running by opening a new window for Pycharm. Please fix this! Also, I'm new to programming, so I might not understand some of the vocabulary you guys are using. Thank you to whoever ends up fixing this issue!

0

Please sign in to leave a comment.