Bug 446423 - Autocomplete doesn't highlight the correct item
Summary: Autocomplete doesn't highlight the correct item
Status: RESOLVED DUPLICATE of bug 444883
Alias: None
Product: kdevelop
Classification: Applications
Component: Code completion (show other bugs)
Version: 5.6.2
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-03 14:42 UTC by Mattia Basaglia
Modified: 2021-12-03 16:29 UTC (History)
2 users (show)

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


Attachments
Screen grab of the bug (1.65 MB, video/ogg)
2021-12-03 14:42 UTC, Mattia Basaglia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mattia Basaglia 2021-12-03 14:42:20 UTC
Created attachment 144171 [details]
Screen grab of the bug

SUMMARY

I think this is a regression because it was working fine on older version.

Now it seems autocomplete most of the time highlights the first entry in the completion menu, whether it has anything to do with what you are typing or not


STEPS TO REPRODUCE
1. Have enough code that you can have autocompletion
2. start typing

OBSERVED RESULT

The completion suggestion is the first in alphabetical order.
Sometimes it shows the right completion for a fraction of a second but then switches to the wrong one

EXPECTED RESULT

it should suggest based on what you typed so far

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-22-generic (64-bit)
Graphics Platform: X11
Processors: 8 × AMD FX(tm)-8320 Eight-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon ™ RX 470 Graphics

ADDITIONAL INFORMATION

I attached a video showing the issue
Comment 1 Igor Kushnir 2021-12-03 15:21:53 UTC
> I think this is a regression because it was working fine on older version.
Can you specify the exact older version?

I suspect this regression could happen because of recent changes in KTextEditor. I think it has been changed much more than KDevelop's code completion implementation in recent time.
Comment 2 Igor Kushnir 2021-12-03 15:28:25 UTC
The comment https://bugs.kde.org/show_bug.cgi?id=271073#c7 also complains about recent code completion breakage.
Comment 3 Mattia Basaglia 2021-12-03 16:20:45 UTC
I'm not sure exactly, I use my distro package for kdevelop. I noticed the issue since I upgraded to Ubuntu 21.10

The package list shows the same version as in Ubuntu 20.04: https://packages.ubuntu.com/search?keywords=kdevelop

but it was definitely working fine before I upgraded
Comment 4 Sven Brauch 2021-12-03 16:29:17 UTC

*** This bug has been marked as a duplicate of bug 444883 ***