Bug 204166 - Should save file changes when crashing
Summary: Should save file changes when crashing
Status: RESOLVED FIXED
Alias: None
Product: kdevplatform
Classification: Developer tools
Component: shell (other bugs)
Version First Reported In: git master
Platform: Compiled Sources Linux
: VLO wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-17 13:35 UTC by Thomas McGuire
Modified: 2010-12-24 16:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas McGuire 2009-08-17 13:35:59 UTC
Version:            (using Devel)
OS:                Linux
Installed from:    Compiled sources

KDevelop crashes quite often, and I often loose my changes because of this.

KDevelop should save the changes of all open modified files when crashing, so that no data is lost. This could be done with signal handlers.
When starting, it should present the user with a list of recovered files, with the diff to the file on disk being viewable as well, and ask the user which of them he wants to restore.
Comment 1 Andreas Pakulat 2009-08-17 14:26:50 UTC
(In reply to comment #0)
> KDevelop crashes quite often, and I often loose my changes because of this.

No it does not.

> KDevelop should save the changes of all open modified files when crashing, so
> that no data is lost. This could be done with signal handlers.

Not necessarily. AFAIK what you can do in a signal handler is rather limited.
Comment 2 David Nolden 2009-09-24 22:48:40 UTC
There should be some safer security mechanism, like auto-saving temporary files somewhere every x seconds, and if kdevelop crashes, re-open those files to get the contents back
Comment 3 Olivier.jg 2010-12-19 07:34:26 UTC
KDevelop does have safety procedures like this in place now.
Comment 4 Thomas McGuire 2010-12-24 16:10:27 UTC
Thanks, the new mechanism saved me from loosing changes a few times already :)