Bug 456502 - External tools configuration lost
Summary: External tools configuration lost
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 21.12.3
Platform: Other Other
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
: 482451 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-07-09 08:32 UTC by Holger
Modified: 2024-04-20 17:52 UTC (History)
2 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 Holger 2022-07-09 08:32:50 UTC
SUMMARY

On removing a single external tool definition, all of them are removed on next start.

STEPS TO REPRODUCE
1. Open preferences > external tools (haven't used those much - so they should be pretty vanilla with defaults)
2. select entry "git blame" in the tree
3. click on "remove/delete" (translated back to English)
4. the node "git blame" (and only this node) is removed from the tree
5. check the menu extras > external programs looks fine (only one entry is missing as intended)
6. shut Kate and reopen

OBSERVED RESULT

The sub-menu extras > external only offers a single entry for configuration. And in the configuration, the tree is gone - completely blank except for one node "uncategorized".

EXPECTED RESULT

Only the selected entry shall be removed, not all of them!

SOFTWARE/OS VERSIONS

Operating System: Kubuntu 22.04
KDE Plasma Version: 5.24.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Kernel Version: 5.15.0-40-generic (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-4700MQ CPU @ 2.40GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600

ADDITIONAL INFORMATION

Symptom seems very similar to bug 453272. Only I didn't type or edit any of those external configurations. Also I don't have a folder ~/.config/kate or ~/.config/kate/externaltools

Comparing with my backup, I found a new file was created as ~/.config/kate-externaltoolspluginrc
It has only three lines:
---
[Global]
firststart=false

---

I renamed that file to kate-externaltoolspluginrc.bak and relaunched Kate - that brings back all the external-tools definitions, including the "git blame", that I tried to delete.
Comment 1 Christoph Cullmann 2023-08-04 18:03:22 UTC

*** This bug has been marked as a duplicate of bug 467377 ***
Comment 2 Waqar Ahmed 2024-04-20 16:25:13 UTC
*** Bug 482451 has been marked as a duplicate of this bug. ***
Comment 3 Waqar Ahmed 2024-04-20 17:52:05 UTC
Git commit 5f56d41063028d97e92a06bc95c914d4c1e5a6fb by Waqar Ahmed.
Committed on 20/04/2024 at 16:22.
Pushed by cullmann into branch 'master'.

Fix external tools get lost on modification

The fix will only work for users who have firststart=true in their
config

M  +1    -0    addons/externaltools/externaltoolsplugin.cpp

https://invent.kde.org/utilities/kate/-/commit/5f56d41063028d97e92a06bc95c914d4c1e5a6fb