Ok so, I was coding and my computer shut down to update. For some reason, after I opened it up again, all my code was gone and replaced with empty lines and 1 dot. It was just line 1 and a bunch of dots. Is there anyway to load an old version of the code again.
Also, the code is still on the robot so is there a way where i can upload back the code from the robot onto the computer?
@markmark I am just a public user on the forum, and I don’t want to give an answer that may be false. I believe I found the person for PROS support. @Eden Sorry to ping you, unsure if this is urgent or not but the question above is out of my knowledge. I don’t want to speculate to conclusions.
Use Git. You do not need to use GitHub/GitLab/Bitbucket, but doing so will obviously provide even more redundancy for your backups.
If you believe this issue was caused by the PROS Editor, then simply do not use the PROS Editor. That is part of the beauty of PROS — you can use anything from the most sophisticated IDEs to the most basic text editors without being forced to give up integration. I personally greatly dislike and never use Atom (the PROS Editor is nothing more than re-skinned Atom with a few extensions preinstalled), and I have never experienced or heard of an issue like this with any other text editor/IDE I have used.
If you think the issue lies with the PROS CLI (which I highly doubt), then that is a different conversation entirely. But it is important not to label issues as a generic “PROS issue” when in reality the problem could lie with the highly optional PROS Editor or an essential component like the CLI or API.
As for restoration of the corrupted files, assuming (like me) you suspect the PROS Editor to be the problem, your solution (if one exists) will have nothing to do with PROS specifically, but rather the Atom text editor and/or the capabilities of your file system. I recommend searching the internet for a similar issue with Atom as opposed to with PROS, because you will be far more likely to find a recovery (or mitigation) solution by doing so.
Have you checked %USERPROFILE%\.atom\recovery ?
It seems that this is a fairly common problem (as seen by this massive thread on the atom forums). I would avoid using atom in the future. Also use a version control system like git and sync it to the cloud in some way so that you won’t lose data if your laptop is stolen/lost.