Bug 390561 - Incorrect tab settings when opening some files
Summary: Incorrect tab settings when opening some files
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: indentation (show other bugs)
Version: 17.12.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-16 14:34 UTC by Cliff Ingham
Modified: 2018-02-16 19:10 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cliff Ingham 2018-02-16 14:34:43 UTC
When opening some code files (ie. PHP, HTML, Twig, etc.)  Kate sets the tab width and indentation width to 2, even though in the Kate configuration, I've set it to 4.

It doesn't happen with all PHP files, only some, however, a given file will always open with the same (incorrect or correct) indentation every time.  I can provide sample files that open one way or the other, although, I cannot figure out how Kate is determining what tab settings to use.

I've renamed the files to no effect.  I've also edited the files so that they have the same content, and Kate still opens with the (incorrect or correct) tab settings per file.
Comment 1 Kåre Särs 2018-02-16 16:36:59 UTC
The default tab setting in kate is over ridden by special comments in the file, .kateconfig and .editorconfig files. These comments and config-files specify these settings. Could it be that you have some of these comments or config files?
Comment 2 Cliff Ingham 2018-02-16 19:10:56 UTC
Ugh, yes it turns out to be a stray .editorconfig way up the directory tree.  It looks like this is desired behavior, and I apologize for not knowing of this possibility.

I can set this as resolved:invalid or whatever status makes sense for my bogus non-bug.