Reputation: 33
My laptop died while programming, the class file in question was saved a few moments before it happened. When i started eclipse again I couldn’t open my workspace because of some error, so I deleted .metadata from my workspace and imported my peoject again.
All my class files are fine, except the one I was working on before my laptop died... which has months of work on it.
I have a back-up project from a few days back, tried importing it but the exact same problem remains. And I can’t restore the file from local history cause apparently there is none.
The file has no code in it, no imports or anything. There is an error on line 1 which is empty, telling me its a syntax error. Nothing I do removes this error. Please help
Upvotes: 0
Views: 134
Reputation: 33
If this happens to anyone, I found all of my code inside the .log file that appeared when I could not open the project. So I deleted .metadata, deleted my file with code in it, then just copy-pasted it from the .log file.
Then again, deleting .metadata is a bad idea so avoid it if you can.
Upvotes: 1