Summary: | Kate adds cruft to a file and then won't save the file anymore | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | digimer <digimer> |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED DUPLICATE | ||
Severity: | critical | CC: | rdieter |
Priority: | NOR | ||
Version: | 3.12.3 | ||
Target Milestone: | --- | ||
Platform: | Fedora RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | The file that is getting corrupted in this bug report. |
Description
digimer
2014-04-04 23:58:12 UTC
I've hit this bug again. This time, I was able to check what was happening and realized I made a mistake in my report above. The file's mtime *does* change, but the size doesn't. In this case, kate repeated the last two lines of the file: ==== diff --git a/cgi-bin/an-cluster.lib b/cgi-bin/an-cluster.lib index 7c3b4dd..bd578c8 100755 --- a/cgi-bin/an-cluster.lib +++ b/cgi-bin/an-cluster.lib @@ -5502,3 +5502,6 @@ sub _make_hash_reference } 1; + +1; + ==== If I look at the file size and mtime, I see: ==== lemass:~/projects/an-cluster/an-cdb$ ls -la /var/www/cgi-bin/an-cluster.lib -rwxrwxr-x 1 digimer digimer 208809 Apr 5 14:24 /var/www/cgi-bin/an-cluster.lib ==== If I delete the repeated/added lines and save the file, I see the mtime change, but not the file size: ==== lemass:~/projects/an-cluster/an-cdb$ ls -la /var/www/cgi-bin/an-cluster.lib -rwxrwxr-x 1 digimer digimer 208809 Apr 5 14:26 /var/www/cgi-bin/an-cluster.lib ==== If I press <f5>, the just-deleted lines return. I took a short screen cast showing this: https://www.youtube.com/watch?v=ImZGaZaox8M To confirm it's not a disk problem, I edited it in vim and saved the changes. ==== lemass:~/projects/an-cluster/an-cdb$ vim /var/www/cgi-bin/an-cluster.lib lemass:~/projects/an-cluster/an-cdb$ ls -la /var/www/cgi-bin/an-cluster.lib -rwxrwxr-x 1 digimer digimer 208804 Apr 5 14:32 /var/www/cgi-bin/an-cluster.lib ==== I still don't know how to trigger this on demand, but at this time, kate is no longer useful for me because this bug randomly breaks my files. :( I've been able to narrow down things a little. I rebooted my computer, re-opened the file with kate and the problem remains. While playing around, I realized that adding lines to a file works fine. The problem happens when I delete lines. So I took another screen cast showing how kate properly saves when a bunch of lines are added to the file, then sticks garbage onto the end of the file when those new lines are deleted again. I edited the file in vim, saved and confirmed that the file was cleared up properly. Screen cast: https://www.youtube.com/watch?v=Gh4dCddueac (you'll probably want to load it at 1080p and full screen to see what's happening better). More info; I moved my ~/.kde directory out of the way and started kate again, causing it to create a new .kde directory. The problem persists, so that's not the issue either. I will attach a copy of the file that is breaking. Created attachment 85967 [details]
The file that is getting corrupted in this bug report.
*** This bug has been marked as a duplicate of bug 323693 *** |