Bug 274244 - implementation helper auto-completion of new function shown twice
Summary: implementation helper auto-completion of new function shown twice
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (show other bugs)
Version: 4.2.1
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: 4.2.0
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-27 03:49 UTC by Wolfgang Bangerth
Modified: 2011-05-28 02:21 UTC (History)
0 users

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


Attachments
Screenshot (28.61 KB, image/png)
2011-05-27 23:31 UTC, Wolfgang Bangerth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wolfgang Bangerth 2011-05-27 03:49:36 UTC
Version:           4.2.1 (using KDE 4.6.0) 
OS:                Linux

As shown at the bottom of the "Adding new classes and member functions" section here:
  http://userbase.kde.org/KDevelop4/Manual/Working_with_source_code#Adding_new_classes_and_implementing_member_functions
and in this snapshot
  http://userbase.kde.org/File:Kdevelop-37.png
there is a problem with the auto-completion tooltip when starting to implement
a new member function: the same member function is listed twice. I don't think there is a difference between choosing either one of them in terms of what it expands to but the fact that you get the same entry twice in the list is a bit confusing.

On a side note, the tooltip doesn't work if there are more than one version of the same function (i.e. it is overloaded on the argument type), in which case the tooltip only offers one. Similarly, in that case, it would be useful if the tooltip showed the argument list to allow selecting the right one.

Best & thanks
 W.

Reproducible: Always
Comment 1 Milian Wolff 2011-05-27 18:23:53 UTC
you probably mean this screenshot - right?

http://userbase.kde.org/images.userbase/thumb/9/9c/Kdevelop-36.png/500px-Kdevelop-36.png

anyhow I cannot reproduce it as easily as you suggest - please attach the code to your example. This works for me:

class foo {
    void bar();
};

// now write "foo" and see that it will offer implementation of bar only once
Comment 2 Milian Wolff 2011-05-27 18:24:48 UTC
adapting meta data
Comment 3 Wolfgang Bangerth 2011-05-27 23:29:54 UTC
(In reply to comment #1)
> you probably mean this screenshot - right?

Yes, sorry for the wrong link.


> anyhow I cannot reproduce it as easily as you suggest - please attach the code
> to your example. This works for me:
> 
> class foo {
>     void bar();
> };
> 
> // now write "foo" and see that it will offer implementation of bar only once

Hm, with 4.2.0, I get two entries bar(). I'll attach a picture in a second.
Was this fixed before 4.2.2?

W.
Comment 4 Wolfgang Bangerth 2011-05-27 23:31:37 UTC
Created attachment 60402 [details]
Screenshot

Image with the two occurrences of the same function in auto-complete. Sorry for the icon on the return type of the function -- it's supposed to read "void" but 
is an artifact of taking a screen shot...
Comment 5 Wolfgang Bangerth 2011-05-28 02:21:41 UTC
Trying this again, with the same code as shown in the screenshot, I find that the bug is fixed in 4.2.2. Closing.

Thanks
 W.