Summary: | When editing Rust code, backspacing into a '{'-bracket causes a runaway matching '}'-bracket explosion | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Victor Dods <victor.dods> |
Component: | application | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | waqar.17a |
Priority: | NOR | ||
Version First Reported In: | 21.12.3 | ||
Target Milestone: | --- | ||
Platform: | Appimage | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/utilities/kate/commit/e834835afb7b3ad58c19abc0bb0c0bf0f18d9633 | Version Fixed In: | |
Sentry Crash Report: |
Description
Victor Dods
2022-03-29 18:59:12 UTC
Hi, I haven't checked whether the issue is in Kate or rust-analyzer, but for now just disable "Configure Kate... -> LSP -> Format On Typing" and it will fix the issue. Thanks, that workaround does indeed work! Propposed a fix for the infinite case in Kate: https://invent.kde.org/utilities/kate/-/merge_requests/693 However, I suggest you to report this to rust-analyzer as well as the formatting it is trying to do makes little sense to me (the brackets are already balanced, it shouldn't try to add new brackets). Git commit 4845de3df81ec6ad0a15be5cad163ab9b9d4b53a by Waqar Ahmed. Committed on 30/03/2022 at 14:44. Pushed by waqar into branch 'master'. Fix possible infinite formatting calls M +5 -0 addons/lspclient/lspclientpluginview.cpp https://invent.kde.org/utilities/kate/commit/4845de3df81ec6ad0a15be5cad163ab9b9d4b53a Git commit e834835afb7b3ad58c19abc0bb0c0bf0f18d9633 by Waqar Ahmed. Committed on 31/03/2022 at 06:33. Pushed by waqar into branch 'release/22.04'. Fix possible infinite formatting calls (cherry picked from commit 4845de3df81ec6ad0a15be5cad163ab9b9d4b53a) M +5 -0 addons/lspclient/lspclientpluginview.cpp https://invent.kde.org/utilities/kate/commit/e834835afb7b3ad58c19abc0bb0c0bf0f18d9633 |