| Summary: | auto renaming fails when change affects first letter of name | ||
|---|---|---|---|
| Product: | [Applications] kdevelop | Reporter: | Bart <bart.polot> |
| Component: | Code completion | Assignee: | kdevelop-bugs-null |
| Status: | CONFIRMED --- | ||
| Severity: | normal | CC: | olivier.jg |
| Priority: | NOR | ||
| Version First Reported In: | 4.5.2 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Notice that I changed data_callback to my_data_callback, but suggiestion offers "y_data_callback". | ||
I cannot reproduce any of these issues. Are these reproducible? Yes, still happens 100% of the time with v 4.4.0 Created attachment 83964 [details]
Notice that I changed data_callback to my_data_callback, but suggiestion offers "y_data_callback".
Still happens 100% on kdevelop 4.5.2. This a different computer (still Arch Linux). Counting this, it's already 3 different computers where this happens.
While I don't get the described behavior, it definitely doesn't work as expected for me either - I simply don't get an assistant at all when I prepend something to the function identifier... Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved. |
I use KDevelop for plain C programming. When I change a function from: static void foo_bar (int a) { } to: static void foo_baz (int a) { } the auto-rename pops up offering to change all "foo_bar" calls to "foo_baz". But if I change it to: static void baz_foo_bar (int a) { } It offers me to change it to 'az_foo_bar' (note the missing initial b). No matter what the new "prefix" is, it always omits the first letter of the new name in the suggestion. Additionally, if I actually delete the first letter of the original function name the auto-rename stops reacting: I start deleting the 'o' before the underscore in "foo_bar", it offers to replace "foo_bar" for "fo_bar". After deleting the second 'o', it offers "f_bar". If I delete the 'f', it keeps suggesting "f_bar" and stops reacting to any changes (like writing "baz"). If I write something *before* having deleted the 'f', the auto-rename works fine. Reproducible: Always Steps to Reproduce: 1. Write a funcion and use it in my code. 2. Rename the funcion affecting the first letter (either deleting it or adding a prefix). Actual Results: 3. Auto rename suggest wrong new name or none at all. Expected Results: 3. Auto rename suggest new function name as happens when first letter is untouched.