Ask coding questions

← Back to all posts
Main.py File COMPLETELY Wiped
Pricysquirrl (0)

I got a message saying to get the computer’s code version or the server’s version of the code so I clicked my computer’s and the whole file got wiped (the file is still there but the python code is not). Ive tried to go into history and restore, but still nothing happened and the file is empty. Please help

Answered by SixBeeps (5353) [earned 5 cycles]
View Answer
Comments
hotnewtop
SixBeeps (5353)

How many sessions did you code in that file? Was this something you've been working on for an hour or so, or did it take multiple days?

Pricysquirrl (0)

@SixBeeps I have worked on it for a few months now

SixBeeps (5353)

@Pricysquirrl Is there nothing in the file's history?

Pricysquirrl (0)

@SixBeeps there is but when i click restore nothing happens and the file is still empty

SixBeeps (5353)

@Pricysquirrl Is it just the latest revision that's not giving you anything, or all of them?

Pricysquirrl (0)

@SixBeeps only now it appears in my history. However restoring still does not do anything, but I can copy and paste from the history. However, I have to now delete all the line numbers (500).

SixBeeps (5353)

@Pricysquirrl That is 100% a bug then. File a bug report for that.

Pricysquirrl (0)

@SixBeeps yh for sure. This could be real dangerous. I have also emailed them so hopefully I dont have to delete every single line number.

SixBeeps (5353)

@Pricysquirrl If that is the case, I would highly recommend making a script to do that for you. That'd take less time than doing it yourself ^^

Pricysquirrl (0)

@SixBeeps lmao making a script for a script: il try that ty

JakeHu2020 (34)

@Pricysquirrl If you see the latest, but it doesn't restore, then just copy-paste, then remove the number things

Pricysquirrl (0)

@JakeHu2020 Yh that’s what I’m doing rn

JakeHu2020 (34)

@Pricysquirrl Could you still mark that as the answer, incase someone else gets that glitch?