Bug 513180 - Using LSP while editing a remote (fish/ssh) file leads to save loop
Summary: Using LSP while editing a remote (fish/ssh) file leads to save loop
Status: REPORTED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 25.08.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-10 15:54 UTC by Petr Mrázek
Modified: 2025-12-21 16:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Mrázek 2025-12-10 15:54:49 UTC
SUMMARY
Basically, it saves the file over and over, possibly hundreds of times a second.
When I disable the LSP server for the type of file I'm editing (or LSP plugin), it calms down.

It doesn't seem specific to the kind of file I'm editing, but I'm for sure getting it with bash and yaml language servers.

STEPS TO REPRODUCE
1. Have a remote file (ssh)  accessed by opening it from dolphin in kate
2. Make a small edit in the file
3. Save
4. See Kate get locked in a save loop

OBSERVED RESULT
After the first save, it is caught in a save loop, likely because of an interaction with the LS and maybe auto formatting? But it needs better investigation with debugger in hand.

EXPECTED RESULT
It doesn't save loop and doesn't lock up

SOFTWARE/OS VERSIONS
kate 25.08.3-1
yaml-language-server 1.19.2-1
bash-language-server 5.6.0-1
Comment 1 Christoph Cullmann 2025-12-21 16:57:01 UTC
If you have some time to debug this more, that would be awesome!