PHPStorm Deleted Files

I am using PHPStorm 2.0 Build103-99 on a Mac Snow Leopard machine.

I started a project to work on remotely.  I have been downloading files to my machne as necessary, and to facilitate my updates I enabled the automatic upload feature.  However, I was unaware that if I delete a file on my local machine that it also deletes that file on the remote server! Not only that, but if I delete a parent directory (which was created due to the server mappings in my Configuration) I delete that entire directory on the remote server too!  I accidentally deleted a whole bunch of files I didn't mean to delete, and it seems that PHPStorm doesn't send deleted files to my Trash, it just deletes them!  I tried to undo over and over but at some point I had created a new file and modified it so Undo stops and says I can't undo creating a new file because it's already been modified.  I fear I have lost those files forever, and perhaps a client as well!  I was given no warning that this functionality would happen and I am extremely upset!

Is there any way to retrieve these files?  I have not restarted my computer or invalidated any PHPStorm caches.

6 comments
Comment actions Permalink

Unfortunately i cannot help you. But i wanted to express that i am very surprised (in a bad way) that nobody from Jetbrains answers this question....

Thomas

-1
Comment actions Permalink

Hello Chris,

Sorry for delay,

Have you tried Local history? Right click on your project root in Project view toolwindow -> Local History -> Show History. (Local history is persistent across IDE restarts and PC reboots, but it will be lost when you invalidate caches.)

What for automatic upload, currently it uploads all the changes you make, including files move and deletion. Please submit a bug/improvement report to http://youtrack.jetbrains.net/issues/WI#newissue=yes if you disagree.

Regards,
Kirill

2
Comment actions Permalink

This JUST happened to me and before looking around, I posted this as a issue as well as a discussion. I lost over $1,000 worth of work and this is with the recovery of the local history.  The local history didn't save all my exact changes.

I went home yesterday thinking all was dandy, and this morning, I started my VM instance and every file on my remote site was at 0 bytes.


Let me remind you that I bought the product yesterday, so that was their "Welcome to phpStorm!" message I guess.

I left work pleased yesterday, and woke up pissed.  Not good.

1
Comment actions Permalink

After rereading this issue, I didn't have the SAME problem.  It's similar, but mine seemed to be a little worse... I didn't delete any of the files.  I know that they sync local and remote deletes.  After saving my last change yesterday, I shut down, and woke up to my entire site's filesystem being at 0 bytes with all the files still there.

0
Comment actions Permalink

Hello Jordan,

Let's contiue discussion on the bugtracker page: http://youtrack.jetbrains.net/issue/WI-5709

Regards,
Kirill

0
Comment actions Permalink

OMG!!!! I was about to get a heart attack!

I decided to keep an updated local copy and just download a clean instance from my remote files. So I deleted the local copy then was going to download the remote copy (you know how sometimes you make name changes and then for some reason doesn't apply it to the local copy but rather you need to redownload the file, so you end up with duplicates). Anyways, so when I did that all my files got deleted!!!!

after cursing at PHPStorm for a few minutes i came to this thread. And the advice on reverting to a local history copy saved me!!!

1

Please sign in to leave a comment.