I was working on a project in Intellij when my laptop suddenly turned off completely(I unplugged the charger and apparently the battery loses contact if you move the computer). I'm sure I saved before unplugging. Now that I launch Intellij, I noticed several unpleasant changes:
The IDE doesn't remember recent projects; it didn't open my project straight up after I launched it as it usually did before.
Project files are all gone, all that remains is an .iml file.
The color theme changed back to white, even though I switched it to black.
Most disturbingly, local history appears to be wiped, there's nothing there save for the .iml file.
In the light of these circumstances, I have these questions:
What the hell happened? Why did all my files disappear? They were all saved, so how could they just vanish?
Is there any way to recover them or did Intellij scrapped them so thoroughly they're gone?
Right click on the project directory or folder. Go to Local_History > Show_History
From the list of history, Right click on the change you want to recover and choose Revert
It appears that one or more of the IntelliJ project files was corrupted during the sudden power off. As a result, IntelliJ is not loading your project correctly. I would approach this by creating a new project, with the same options as your first one, and then copying the source files over from the old location.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With