Kate - disabling and enabling auto correction changes behaviour

Hi. I’d rather file a bug report, but bugs wants to semi-publish my email address, which I’m not comfortable with, and invent asks me to not file bug reports there. So here I am.

I’m using Kate for C++ development and I use sessions - one per project. For a few months now, after every launch I have to disable and then enable auto correction. If I don’t, kate makes every “,” I input a ", " instead or, when I start a line comment in an otherwise not empty line, it aligns the first ‘/’ at column 61 and also changes the input “//” to "// ".

I have no idea, where this not-so-helpful behaviour comes from, or what it would be called in the settings. But there’s obviouly a bug involved somehow, since disabling and re-enabling auto correction gets rid of this behaviour, i.e. changes behaviour.

In the unwanted state it also does other “helpful” stuff, but the two described above are the ones I can readily name, since those two I run into first most of the times reminding me of what to do.

Any ideas about how to fix this? Or where to start looking in the sources and what for? I’m not opposed to looking for the offending code to then create an issue on invent which includes mention of the cause.

Thanks.

Hi - just checking, does that behavior occur in any file, or just in C++ files? And does it occur in a new session?

Just checked in a CMakeLists.txt. It doesn’t happen there. But in every restored session (I have multiple open at a time usually), it starts out with the unwanted behaviour.

Also, ChatGPT found this 3y old thread
forum dot endeavouros dot com/t/kate-keeps-autoformatting-my-code/25524/16
where the one with seemingly the same problem identified a triplet of kate files in .config, whose deletion did away with the problem. Would have looked into that first, but by the time I had given up on looking for traces of others having the problem, that site didn’t load anymore. I guess, I’ll find the time to look through those files, tomorrow.