-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename symbol doesn't seem to work #405
Comments
There's a regression under investigation. |
I reverted bab6caf locally and it works again. |
Should be fixed by f0c1dbe (although it seems you have to wait a bit after opening a file, before using Rename) |
I can confirm that it works, but only within the .cpp and its .h file. Or like this: In the above CapitalBe example:
Rename "DateBox" to "TheDateBox". It gets correctly renamed in "CheckView.cpp" and "DateBox.cpp" and "DateBox.h, but not in all the other files in the project. |
Is there a correlation between the opened files and the ones updated? I
wonder if for some reason we are only able to edit files already open and
we lost the capability of opening a file and apply the edits..
Il giorno mer 5 giu 2024 alle 15:07 humdinger ***@***.***> ha
scritto:
… I can confirm that it works, but only within the .cpp and its .h file. Or
like this:
In the above CapitalBe example:
Open "CheckView.cpp" and "Rename symbol" (from the editor view's context
menu) on "DateBox) in the line:
fDate = new DateBox("dateentry", "", NULL, new BMessage(M_DATE_CHANGED));
Rename "DateBox" to "TheDateBox".
It gets correctly renamed in "CheckView.cpp" and "DateBox.cpp" and
"DateBox.h, but not in all the other files in the project.
—
Reply to this email directly, view it on GitHub
<#405 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AALC2DU4QTJS2IQTKTWSWETZF4EQ3AVCNFSM6AAAAABIXYZMUKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBZHAZTMOJSGE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Yes, it appears so. |
Is there a compile db available or not ? (just to be able to understand how it behaves in various cases) |
Nope, no db in the project's folder nor in /boot/home/config/settings/Genio |
I think the behaviour is correct. If you don't have a compile_commands.json file, LSP doens't know what files are included in the project unless you open them (at this point is Genio telling LSP the file is included).
|
Yeah, especially for the small time hobby/beginner coder. We don't think about what is needed in the background (LSP <->IDE) for some feature to work. |
Is renaming symbols supposed to work currently?
I open "DateBox.cpp" of the CapitalBe project, select
DateBox::DateBox
from the Outline pane. From the context menu I "Rename symbol" toDateCalendarBox
.Nothing gets renamed, neither in DateBox.cpp nor in any other file that references "DateBox".
Attached is the output with log level trace: symbol-rename-trace.txt
The text was updated successfully, but these errors were encountered: