Background: I was writing a latex file on my MAC using Atom last night. And I also opened that same file in my Windows machine using CTex. That file is in my dropbox, so once I save changes in my MAC, I can get it on my Win(I don’t know why I have to do this last night, but this is how the issue occurred).
The issue was happened in this way: I opened up the Atom on maybe 7pm, and the file is always opening in my Windows machine( actually I didn’t do anything on my win machine, only occasionally refresh that file). At 11 pm or so, I was copy and paste some codes in order to get a right figures order in my latex file, and I didn’t satisfied with my latest change so I hit the undo.
Then it happened, at the first glance I think my Mac is stuck for some reason, because the Atom just stuck there(my Mac is 16GB RAM, I don’t think an undo will make things crash). I was afraid about losing anything so I hit the shortcut of save file in Atom even if the Atom is stuck there.
After a while, maybe 30 sec, I found the terrible thing is that my file return(undo) to the state when it is 7pm when I open it, and I just hit the save file shortcut moment before!!! Hopefully I can track the modification history in Dropbox so I restored my file from 30 minutes earlier status. But I still lose all my changes in the last 30 minutes.
Just out of curiosity, I randomly do some changes to my file and hit the undo again. The same thing happened, but I did not hit save file this time XD…
I was trying to work out something before the deadline last night, so I did not do further research to this. Maybe later tonight I will try to reproduce this issue again to see if it is really an Atom issue.
I am not sure if this is because of Dropbox or the same file I open on my Win machine. But I cannot figure why it return to the status when I firstly on 7pm. I occasionally check my Win CTex so the status on my Win maybe like 10pm version or so.