Bug 327193 - "Classes" tool view not updated when renaming a class.
Summary: "Classes" tool view not updated when renaming a class.
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (other bugs)
Version First Reported In: 4.5.2
Platform: Gentoo Packages Linux
: NOR minor
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-05 22:17 UTC by Staffan Palmroos
Modified: 2023-01-17 22:08 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 Staffan Palmroos 2013-11-05 22:17:22 UTC
Renaming a class in the class tool view the changed name is updated in the code files and the CMakeLists but the "Classes" tool view itself is not updated, it still has the old name and the option to rename the class disappears. I have to restart KDevelop to update the view.

Reproducible: Always

Steps to Reproduce:
1. Open the "Classes" tool view
2. Right click on a class name and chose "Rename ###"

Actual Results:  
Old class name is displayed in the tool view. Chosing "Find uses" uses the old name of the class and consequently nothing is found (in my case).

Expected Results:  
The tool view itself should be updated with the new name.
Comment 1 Andrew Crouthamel 2018-11-10 03:22:29 UTC
Dear Bug Submitter,

This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond.

Thank you for helping us make KDE software even better for everyone!
Comment 2 Andrew Crouthamel 2018-11-21 04:35:23 UTC
Dear Bug Submitter,

This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? This bug will be moved back to REPORTED Status for manual review later, which may take a while. If you are able to, please lend us a hand.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Justin Zobel 2023-01-10 01:52:09 UTC
Thank you for reporting this issue 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 "REPORTED" when replying. Thank you!
Comment 4 Staffan Palmroos 2023-01-17 22:08:38 UTC
Indeed I can reproduce it with KDevelop Version 5.9.220803 (22.08.3)

I do this by opening the classes view, double click a class name in the view to open the header file for the class. I then right click on the class definition to rename the class. The class is renamed together with all the references to it but the classes tool view is not updated. Now I can no longer click on the class name to open the header file.

However, in the source code editor I now get a suggestion to rename the file to reflect the class name. When I do so the program crashed but I guess that's another bug.