[URGENT] how to recover text/entire file that Pycharm ate up

Answered

I was working fine on Pycharm, then it suddenly selected all the text in the file and just deleted it. It's a few days worth of work.

No way to undo what it did. I had already remapped long ago the stupid Ctrl+Y so that it would not delete when it should redo, but it seems that this time it redid the delete and Ctrl+Z does not work. Right now the file is entirely empty. Ctrl+Z, Ctrl+Y does nothing.

I am trying to find any temp file automatically saved and I would really appreciate if anyone could help finding it or suggesting another way to recover my work. Thanks!

8 comments

I have just found "local history" but it appears to be a bad joke. There are about 30 versions of the file, all empty

please help

0

Hi,

I am afraid that if you do not have any version control system it will not be possible to do anything in PyCharm. So, when you right click on the file and select Local History ---> Show History all of them are empty? Please create some test file, make some changes and try to view history again, is it also empty?

0

Thanks for your reply. I had to give up the file and write it again.

The file was a jupyter notebook. Everything was in one markdown cell (I don't usually use pycharm for writting md, but this time i started there and continued writing for quite a while until I lost everything)

I am able to reproduce the Ctrl Z problems on jupyter notebooks. The behavior is absolutely buggy when markdown cells are involved. Ctrl Z on them even deletes other cells, and it also deletes the cell on which it's called.

I am not sure if Pycharm selected all the text. It probably was Ctrl Z deleting everything. But I noticed that Pycharm has this sometimes annoying behavior of selecting entire paragraphs when you click somewhere or with some combination of keys I am not able to reproduce.

I am not able to reproduce the local history problem. When I do tests, it seems to work fine, even with jupyter notebooks. But on that case I had 30 entries, all of them the same. They were not empty, they had the structure of a jupyter notebook file, but "source" was empty in all of them.

I now read that jupyter notebook support in pycharm has been bad for a while but it was said that it will improve. Has it improved significantly since the 2017 version?

Thanks

0

Since you mentioned version control, I woudl like to add that I used to have Git, but Pycharm would start many instances of git in the background (from 5 to 10 usually) even when I was not using git.

I disabled it entirely as I could not find a way to control it.

0

>I now read that jupyter notebook support in pycharm has been bad for a while but it was said that it will improve. Has it improved significantly since the 2017 version?

We currently work on the redesign of it from scratch. So, when released, it will have a lot of fixes for different problems and lots of improvements.

>Since you mentioned version control, I woudl like to add that I used to have Git, but Pycharm would start many instances of git in the background (from 5 to 10 usually) even when I was not using git.

Is it possible to try it in 2018.2.4 to see if problem remains?

0

pycharm just spontaneously deleted the entire content of one of my python files, and then saved it to disk of course. Lost a few days of work, which I'm not even sure if I can reproduce. Thanks a lot, jetbrains.

0

Hi Eric, could you please create a ticket in our bug tracker and provide more details about what happened? Also please attach idea.log from Help | Show Log in ....

0

Please sign in to leave a comment.