Bug 277748 - Editor does not save files to disk
Summary: Editor does not save files to disk
Status: RESOLVED WORKSFORME
Alias: None
Product: kate
Classification: Applications
Component: part (other bugs)
Version First Reported In: 4.0
Platform: openSUSE Linux
: NOR major
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2011-07-14 09:12 UTC by Christoph Bartoschek
Modified: 2018-10-27 02:06 UTC (History)
3 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 Christoph Bartoschek 2011-07-14 09:12:14 UTC
Version:           4.2.3 (using KDE 4.6.0) 
OS:                Linux

It happens from time to time (with increasing frequency) that the kdevelop editor refuses to save an edited file to disk.

The problem starts that I can start editing the file (undo/redo work fine) but the indicator next to the filename that the file has been modified does not appear. Editing the file works fine but pressing CTRL+S or using the menu or pressing F8 has no effects. The edits are not written to the disk. There is only a .swp file next to the untouched original file.

Reproducible: Sometimes

Steps to Reproduce:
I start kdevelop. Work normally and eventually the problem will appear.

Actual Results:  
The file contents are not written to disk.

Expected Results:  
The file contents are written to disk.

This bug causes data loss, because if one does not copy the edits from the editor window into another editor and saves them there they are lost.
Comment 1 Milian Wolff 2011-07-14 15:04:22 UTC
Without a proper way to reproduce this and/or more information, I doubt we can do anything here.

So, next time attach a debugger and try to find out why saving is prevented (which should never happen, as kate allows saving even without any changes).
Comment 2 Christoph Cullmann 2011-08-09 16:48:49 UTC
Have never seen this in standalone kate nor kwrite (beside today, as there was yesterday a regression introduced in master that kills save as whole ;)
If there is a way to reproduce it, we will look into it.
Comment 3 reidclan 2011-10-02 17:09:11 UTC
Kdevelop version:  4.2.3
OS:                Linux

I also ran into this bug (very annoying/confusing until I figured out that some files in a session were not being saved).

One way to reproduce this:
1. Open a session that contains several tabs (source files).
2. Editing in the first (highlighted) tab will not cause the save file icon to appear and any changes to that file will not be saved unless you explicitly invoke a save. As a consequence, any builds (I use scons via a makefile) that use this file do not include the changes.
3. Editing any other file (tab) causes the save icon to appear and changes will be saved and used during a build.

Hope this helps - this bug was a major time waster until I figured out that some files were not being updated.
Comment 4 Fred 2012-08-31 12:41:04 UTC
Same thing here : randomly, I can edit a file but it won't be detected as 'edited' by kdevelop (floppy disk icon is not displayed in the title tab), and the file won't be saved.

I don't know how to reproduce, it's really random.
Comment 5 Andrew Crouthamel 2018-09-23 02:23:16 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-10-27 02:06:43 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!