SUMMARY Large search and replace operations grind Kate/KWrite to a halt, sometimes taking several minutes to become responsive again. STEPS TO REPRODUCE 1. Copy and paste this text into Kate or KWrite https://pastebin.com/raw/a9NcnfBq 2. Replace " " with "," using plain text mode (10,403 replacements total) OBSERVED RESULT Application hangs for a very long time. Upwards of 5+ minutes sometimes. EXPECTED RESULT This should be a relatively quick process. SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE Neon 5.14 (available in About System) KDE Plasma Version: 5.14.4 KDE Frameworks Version: 5.53.0 Qt Version: 5.11.2 ADDITIONAL INFORMATION Problem is identical in Kate and KWrite and has existed for as long as I can remember.
Hi, You are probably referring to the built-in search. This is a known issue for files with long lines in Kate/KWrite. There is now ongoing work to split the replacing into chunks so that it will be possible to cancel the replace if it takes too long. A similar effort is also being done for the Search & Replace plugin. I'm actually testing the S&R change at the moment. Hopefully this will be a bit improved for Kate 19.04
*** This bug has been marked as a duplicate of bug 244424 ***
(In reply to Kåre Särs from comment #1) > Hi, > > You are probably referring to the built-in search. > > This is a known issue for files with long lines in Kate/KWrite. > > There is now ongoing work to split the replacing into chunks so that it will > be possible to cancel the replace if it takes too long. > > A similar effort is also being done for the Search & Replace plugin. I'm > actually testing the S&R change at the moment. > > > Hopefully this will be a bit improved for Kate 19.04 Great to hear, thank you. I guess Christoph's dupe confirms this has been an issue for quite a while. I did search beforehand but didn't notice any similar reports. Apologies for the duplicate!
Actually, reading the duplicate again, it only talks about the search operation. I am not sure if the replace operation (which needs to modify the text) can be executed in a separate thread. Changing bug status and let Kate maintainers handle it.
> There is now ongoing work to split the replacing into chunks so that it > will be possible to cancel the replace if it takes too long. https://phabricator.kde.org/D17459 There are mentioned BUGs: 333517 244424
The search/replace stuff got fixed! The search stuff still is valid, see bug 244424