Problem description:
My file is not saved to the latest version and when executed in shell, it executes the old version. I see latest version of the file on the screen, but it executes the old version. When I checked the file next day it was showing the old version. Before I didn’t have this problem, for 3 months it working fine.
Also, what I started noticing is that my replit page in chrome started restarting itself from time to time, probably once every 10 min. It also never happened before.
Expected behavior:
When I write the code it autosaves and I always have the latest version of the file. Also, the replit page does not restarts on its own.
Actual behavior:
The file is not saved, even though I see the latest version of the file, it executes the last version in the shell. Day after, I only saw the old version of the file.
Steps to reproduce:
Open new .py file in intern/other. Put some script and try to execute it.
Bug appears at this link:
https://replit.com/@saidamir1/MLsimulator#intern/other/mse_split.py
Browser/OS/Device:
Chrome/iOS/MacBookPro
Hey @saidamir1!
Just click the ⋮ next to “Files” then click “Show hidden files”. Next click on the .replit
file and finally you can change the entrypoint
to whatever file you want to run.
You can also change the second line from run="run_command_for_lang main.py"
to run="run_command_for_lang fileIWantToRun.py"
, though it won’t have an effect for languages with interpreters as shown in the comment on line 1.
Images



Also see the docs on how to configure a Repl: https://docs.replit.com/programming-ide/configuring-repl
Thanks, but how does it help saving my files? I don’t need to run main, I am running each .py file which I am developing using shell: python fileIWantToRun.py. The little cloud which indicates whether my file is saved, is in constant loop and only saves if I refresh the page.
Hmm. That’s odd. Do you have a stable internet connection?
+1, I am also encountering this issue on replit today
1 Like
specifically, the code is changing and updating when I make updates, but it isn’t persisting when in web view. I even used a different browser/tried refreshing on mobile, and the changes aren’t showing up
Yes, I am able to work on my internet, doing my other development work. This problem persists for me in other places as well, not only in one place.
Hey @saidamir1 and @lbrendle!
I apologize for the delay on this. We have resolved this so please let me know if you are still seeing the issue
I am still having the same issue