Bug 441908

Summary: Using The ":only" Command In Vim Edit Mode With Only One Window Opened Causes Crash
Product: [Applications] kdevelop Reporter: school.shsps
Component: All editorsAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: crash CC: p.r.worrall
Priority: NOR    
Version: 5.6.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: A recording of KDevelop not responding

Description school.shsps 2021-09-02 12:33:40 UTC
Created attachment 141244 [details]
A recording of KDevelop not responding

SUMMARY
Using the ":only" command (Which closes all opened windows and keep the current active one open) in Vim editor mode causes KDevelop to stop responding.

STEPS TO REPRODUCE
1. Change the editor mode from normal mode to Vim editor mode
2. Open one window (Text document)
3. Enter ":only" in normal mode

OBSERVED RESULT
KDevelop freezes and stop responding.

EXPECTED RESULT
Shows an error that only one window is opened.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 21.04
(available in About System)
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.85.0
Qt Version: 5.12.2

ADDITIONAL INFORMATION
Comment 1 Paul Worrall 2021-09-02 17:45:51 UTC
I can confirm.  In this state KDevelop also uses 100% CPU.
Comment 2 Bug Janitor Service 2021-09-04 09:59:12 UTC
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/255
Comment 3 school.shsps 2021-09-07 13:44:53 UTC
👍 Nice
Comment 4 Nicolás Alvarez 2021-11-10 03:42:49 UTC
This has been fixed in https://invent.kde.org/kdevelop/kdevelop/-/commit/173aae37f98c3112cae5e9b3777239b981caeb8a