Bug 402896 - Inform user that .editorconfig and .kateconfig files override some preferences
Summary: Inform user that .editorconfig and .kateconfig files override some preferences
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: frameworks-ktexteditor
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-01-05 16:19 UTC by Ardith Metz
Modified: 2023-04-16 16:41 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ardith Metz 2019-01-05 16:19:34 UTC
SUMMARY

.editorconfig support proposed in https://bugs.kde.org/show_bug.cgi?id=330843 have consequences that kate gui config is un-applicable when .editoconfig file exist and has set options which conflicts with those from Kate.

This may be confusing for users as app behavior doesn't match what they see is set in config and not everyone is aware that such thing like .editoconfig may exist and overrides kate settings.

This is a follow up from https://bugs.kde.org/show_bug.cgi?id=397956

cat ~/.editorconfig
# http://editorconfig.org
root = true

[*]
trim_trailing_whitespace = true

STEPS TO REPRODUCE
1. rm ~/.kateconfig
2. rm ~/.config/katerc
3. rm ~/.config/katepartrc
4. rm ~/kate_test
5. echo " " >kate_test
6. kate kate_test
7. Chose from toolbar: "Settings" -> "Open/Save" -> "General" -> "Remove trailing spaces" -> "Never" -> "Apply" -> "Ok"
8. Click "Save" button (notice "Undo button is activated which means changes are done in document)
9. Close kate
10. rm ~/.editorconfig
11. rm ~/.kateconfig
12. rm ~/.config/katerc
13. rm ~/.config/katepartrc
14. rm kate_test
15. echo " " >kate_test
16. kate kate_test
17. Chose from toolbar: "Settings" -> "Open/Save" -> "General" -> "Remove trailing spaces" -> "Never" -> "Apply" -> "Ok"
18. Click "Save" button from toolbar (notice "Undo button isn't activated which means there aren't changes done in document)

OBSERVED RESULT

Settings in GUI are ignored by kate

EXPECTED RESULT

Settings in GUI are honored by kate

SOFTWARE/OS VERSIONS
Kde plasma:5.14.4
Kde frameworks: 5.53.0
Qt: 5.12.0
Kate: 18.12.0
Distro: Arch Linux
ADDITIONAL INFORMATION
Comment 1 Lothar 2019-01-05 16:59:41 UTC
As said*, that happens not only for .editorconfig but also for .kateconfig

The requested behavior seems to me incompatible with the goals of these config files, to force special settings different from users preferences for some project. But there must be a hint to the user that some settings are forced and by which config file.
 
* https://bugs.kde.org/show_bug.cgi?id=397956#c7
Comment 2 Grzegorz Szymaszek 2019-01-09 08:02:06 UTC
As said, this behavior of Kate (and other EditorConfig­‑compatible editors) is correct.

I’ve modified this bug’s properties to focus on the second issue, that is informing the user that some preferences may be overridden by .{editor,kate}config files. See also https://bugs.kde.org/show_bug.cgi?id=330843#c3.
Comment 3 Christoph Cullmann 2023-04-16 16:41:46 UTC
Dear user, this wish list item is now closed, as it wasn't touched in the last two years and no contributor stepped up to implement it.

The Kate/KTextEditor team is small and we can just try to keep up with fixing bugs.

Therefore wishes that show no activity for a years or more will be closed from now on to keep at least a bit overview about 'current' wishs of the users.
If you want your feature to be implemented, please step up to provide some patch for it.

If you think it is really needed, you can reopen your request, but keep in mind,
if no new good arguments are made and no people get attracted to help out to implement it,
it will expire in a year again.

We have a nice website https://kate-editor.org that provides all the information needed to contribute, please make use of it.

e.g. see the information at https://kate-editor.org/join-us/ for details

Greetings
Christoph Cullmann