Bug 363056 - Method is displayed with invalid parameters in source file after selecting it from Kdevelop autocomplete functionality.
Summary: Method is displayed with invalid parameters in source file after selecting it...
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: Language Support: CPP (old) (other bugs)
Version First Reported In: unspecified
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-14 06:18 UTC by chaitanya srinivas ponnapalli
Modified: 2022-11-20 05:12 UTC (History)
0 users

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


Attachments
With autocomplete for the function declaration (177.25 KB, image/png)
2016-05-14 06:23 UTC, chaitanya srinivas ponnapalli
Details
Fuction is displayed without any arguments (161.88 KB, image/png)
2016-05-14 06:24 UTC, chaitanya srinivas ponnapalli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chaitanya srinivas ponnapalli 2016-05-14 06:18:42 UTC
Version: Kdevelop 5
OS: Ubuntu 15.10
Compiler: gcc 5.2.1

Consider the following code:

new_file.h

class new_file{
    public:
        int new_func(int ch);
};

Now, after including new_file.h in the new_file.cpp file. I press ctrl+space to autocomplete the declaration to new_func function.

The new_func(int ch) is shown correctly in autocompletion. However, when I press enter on the displayed autocomplete method, the new_func is displayed incorrectly without any arguments, eventhough it has 'int' as its argument.

so, the function is displayed as:
int new_file::int new_func()

correct output should be:
int new_file::int new_func(int)

Attached the screenshots for this.


Reproducible: Always

Steps to Reproduce:
1. Create a header file new_file.h and create a class as follows:
class new_file{
    public:
        int new_func(int ch);
};
2. Then create the new_file.cpp source file and include new_file.h in it.
3. Then, press ctrl+space to autocomplete the declaration to new_func function.
4. Select the autocomplete function provided.
5. The parameters for the new_func are not displayed. The function is shown with blank parameters.

Actual Results:  
int new_file::int new_func()

Expected Results:  
int new_file::int new_func(int)
Comment 1 chaitanya srinivas ponnapalli 2016-05-14 06:23:16 UTC
Created attachment 98956 [details]
With autocomplete for the function declaration
Comment 2 chaitanya srinivas ponnapalli 2016-05-14 06:24:10 UTC
Created attachment 98957 [details]
Fuction is displayed without any arguments
Comment 3 Justin Zobel 2022-10-21 00:17:52 UTC
Thank you for reporting this bug in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-11-05 05:08:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-11-20 05:12:28 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!