Skip to content
← Back to Community
"We are having issues with your file" - editor loading forever
Profile icon
ma173

"We are having issues with your file" keeps on popping up multiple times a day when working on my python script. Can't exactly tell when it happens but the editor just begins reloading and keeps loading.

Trying to reload the page opens a browser popup that unsaved data may be lost when reloading which is the case (e.g. editor appearance settings that I changed while the editor kept ever loading were lost after reloading).

Plus, a file ".replit" gets created next to my "main.py".

However, I am able to still run the main.py with normal console output.

Tested this on different devices in different networks with different browsers and no blocking browser addons or firewalls.
Wether reverting to a previous commit in version control or switching to an other branch - the error persists.

Answered by Geocube101 [earned 5 cycles]
View Answer
Voters
Profile icon
Zorkai
Profile icon
ma173
Comments
hotnewtop
Profile icon
Geocube101

I assumed that this was a communication error between the client and server. If the file is deleted on the repl computer, then the website wouldn't be able to load the file contents, hence the error (I assume this because I only get this error on files that were dynamically deleted using the python program). Once this popup appears, you'll have to refresh the page (despite the warnings) to fix the editor not loading.

Profile icon
ma173

@Geocube101 Thank you! Once I get the error again (might have been coming up when I renamed a file), I'll stick to refreshing the page then.

Profile icon
Buhron

I have a error that if I type the file gets ruined

Profile icon
AdCharity

Nothing is wrong with the file on my end. Just delete the repl it file

Profile icon
ma173

@AdCharity That's what I do every time I get the error.

The thing is, the editor loaded just fine a minute before you answered after my thousandth page refresh.
And as history tells me, the error will happen again so it must lay kind of deeper and can't always be solved by refreshing the page endless times I guess :/

Profile icon
AdCharity

@ma173 aight just make a new repl and copy and paste the code from main.py in. Also, report it to the repl bugs page in the bottom left.

Profile icon
ma173

@AdCharity What would copying the code into a new repl cause? You think this will prevent the error from happening again?

Already tried to fork the repl which didn't help either (or is there a difference to creating a new repl for it?)

Bug report already created :) and thanks for your support!

Profile icon
AdCharity

@ma173 creating a new one should allow the project to work... at least for a while.

Profile icon
ma173

@AdCharity Alright, thanks, let's hope this works for a bit.

Profile icon
Buhron

@AdCharity

unable to run, main file .replit not found.