| Summary: | Kate doesn't respect indentation configuration | ||
|---|---|---|---|
| Product: | [Applications] kate | Reporter: | tnemeth |
| Component: | indentation | Assignee: | KWrite Developers <kwrite-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | waqar.17a |
| Priority: | NOR | ||
| Version First Reported In: | 22.04.3 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Source file where tabs style auto-detection didn't work. | ||
|
Description
tnemeth
2022-08-14 18:25:24 UTC
What does it say at the bottom right in the statusbar i.e., what are the indentation settings there? Also, do you have "Auto detect file indentation" enabled in the settings? And do you have any `.kateproject` or `.editorconfig` file, if so, then settings specified in those file will be preferred. (In reply to Waqar Ahmed from comment #1) > What does it say at the bottom right in the statusbar i.e., what are the > indentation settings there? "Soft tabs: 8" > Also, do you have "Auto detect file indentation" enabled in the settings? I was but as soon as I saw it, I deactivated it. > And do you have any `.kateproject` or `.editorconfig` file, if so, then > settings specified in those file will be preferred. I don't have those files. However after having restarted kate without "Auto detect file indentation", that bug didn't appear anymore. I simply had to restart kate with the option deactivated... Ok so its fixed for you now? Did you create a new file or was it an already existing file? And if it was an existing file can you share the file where the auto indent detection was failing or maybe a reduced version of the file with which we can repro the bug? Would be great if we can improve it. Created attachment 151341 [details]
Source file where tabs style auto-detection didn't work.
(In reply to Waqar Ahmed from comment #3) > Ok so its fixed for you now? It seems. > Did you create a new file or was it an already existing file? It was an existing file... Well it was all the files of a C project. In attachment the one I was working on. > And if it was > an existing file can you share the file where the auto indent detection was > failing or maybe a reduced version of the file with which we can repro the > bug? Would be great if we can improve it. I don't understand what's happening : after having enabled back again the "Auto detect file indentation", kate doesn't miss-detect that file indentation style. I'm suspicious of something : katepart had been upgraded a few days ago. ktexteditor-katepart:amd64 (5.94.0-4, 5.96.0-1)... Could it be a version / configuration file format change that had gone wrong at a point ? And now that the configuration file is matching the current Kate version, there's no way to reproduce the problem... Hmm, could be that some setting was stored/read incorrectly and was messing things up. Not sure what though. Anyways, marking it as fixed for now but if it comes back feel free to reopen |