Restore my code from local history or cache?

Answered

I just accidentally deleted my whole project folder. 

when I create the same folder as deleted project, it has some local history. but when I revert to the history below

nothing restore in my new folder.

All I have is local history and  local cache  file. Any way can restore my code that I code two week.

0
7 comments

What does Local History show when invoked for the project root? Does it have the record for the files before they were deleted?

0
Avatar
Permanently deleted user

Hi Serge,

I have a similar problem,

I have a big project on a mac laptop, for some reason the laptop was damaged but I was able to recover the project local history from the '~/Library/Caches/Webstorm11' and constructed the project again on another mac, when I go to the project root and right click then local history, I can see the local history tree with all the older changes, but when I try to revert or view any file I got this error message: 

"Java.util.zip.zipException: incorrect header check"

any idea how to solve this issue, or is there any other way to recover the files from the local history without using the IDE

both my mac laptop running: "macOS Mojave"

0
Avatar
Liubov Melnikova

The issue may be related to VFS corruption - can you check if invalidating caches (Preferences | Invalidate caches, restart) solves the problem? And make sure your home is not encrypted, see http://intellij-support.jetbrains.com/entries/23348963

0
Avatar
Permanently deleted user

When I Invalidate caches and restart, all the local history I had before is gone, and history pan is empty.

do you think the history files was some how changed when I copied them to the new computer, and that is why the the IDE unzip utility can't extract them? 

0
Avatar
Liubov Melnikova

What is the version of Intellij that you are using?

0
Avatar
Permanently deleted user

It is WebStorm 11.0.4:

0
Avatar
Liubov Melnikova

Local history with old caches can not work properly by default.

0

Please sign in to leave a comment.