Version: unspecified (using KDE 4.6.1) OS: Linux I have a local webserver where I edit .php files for WP and other CMS systems. Some CMS systems include *.php in given folders. The way kate handles swap files means I frequently get this when loading web pages: "Kate Swap File - Version 1.0SRURURUR UR4URUEtrue" great. this is because kate saves files like .swp.test.php when you're editing test.php. it is possible to work around this annoying bug with while true;do if [ -f .swp* ];then rm .swp*;fi;done but the better solution would be to name those swap files something else, place them somewhere else or give them some other extention. I also don't see why kate would need to go about saving swap files to disk when editing 100 line long files, but that's another matter. Reproducible: Always Steps to Reproduce: 1. run wp or whatever which loads *.php in some file 2. edit some php file 3. kate saves broken php files Actual Results: broken websites Expected Results: working sites
Created attachment 58379 [details] This little trival patch must solve the problem.
Patch looks excellent. THANK YOU VERY MUCH!!!!!! I'm changing bug status to resolved as fixed (please unchange if this doesn't make it in to head, I assume it will).
whoa, whoa. chill. it's not fixed until it's fixed. :-)
*** Bug 269568 has been marked as a duplicate of this bug. ***
how is vim naming it's files?
vim uses “.filename.cpp.swp”.
fine with me, should be backported to KDE 4.6.2 as well. Anyone?
Git commit 42b9c2a192469d8a8926a17c6586f38c4367afb3 by Dominik Haumann. Committed on 30/03/2011 at 00:48. Pushed by dhaumann into branch 'master'. change swap file name to .<filename>.kate-swp BUG: 269518 M +2 -1 part/swapfile/kateswapfile.cpp http://commits.kde.org/kate/42b9c2a192469d8a8926a17c6586f38c4367afb3
(In reply to Dominik Haumann from comment #8) > ... change swap file name to .<filename>.kate-swp Cross referencing: https://bugs.kde.org/show_bug.cgi?id=394750#c15 Baloo has had an exclusion added for *.swp files (as created by vim, see Bug 433095), this exclusion doesn't work for *.kate-swp. The 'repeated reindexing' impact on system performance is likely similar. The impact *may* differ as a mimetype lookup of the kate-swp file comes up with: $ kmimetypefinder .testfile.txt.kate-swp application/x-font-tex-tfm Parallel issue perhaps...