Bug 475236 - Option 'Auto select first completion entry' (from Kate/Ktexteditor) not honoured by KDevelop autocompletion
Summary: Option 'Auto select first completion entry' (from Kate/Ktexteditor) not honou...
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (other bugs)
Version First Reported In: 5.10.221203
Platform: Kubuntu Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-05 09:16 UTC by Andrew McLeod
Modified: 2023-10-05 09:16 UTC (History)
0 users

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 Andrew McLeod 2023-10-05 09:16:52 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. In Settings -> Editor -> Editing -> Auto Completion, turn off 'Auto select first completion entry'
2. Type something that triggers auto completion (from the KDevelop language support side, not the basic Kate autocomplete)
3. Press Enter

OBSERVED RESULT
The first result of the autocompletion is inserted because the first autocomplete entry is selected

EXPECTED RESULT
A new line is inserted because no autocompletion entry is selected

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
The Kate option to not auto-select the first autocompletion target is not honoured by KDevelop's autocompletion even though the option exists in the KDevelop settings. This causes issues when getting spurious autocompletion (e.g. for Python, it constantly tries to insert a blank variable entry in f strings).

Resolved bug in Kate that led to development of option: https://bugs.kde.org/show_bug.cgi?id=316413
Commit in Kate that adds option: https://invent.kde.org/frameworks/ktexteditor/-/commit/3733a2b4b7a6813820ce7a55196e64ccfed4e90d