Bug 204166

Summary: Should save file changes when crashing
Product: [Developer tools] kdevplatform Reporter: Thomas McGuire <mcguire>
Component: shellAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: wishlist CC: david.nolden.kde, olivier.jg
Priority: VLO    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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 :)