Rider's refactor menu is not available
OS: macOS 12.4
Rider: 2022.2.2
Hello everyone.
I am having trouble with the refactor function in Rider.
However, when I point the cursor at a variable name and select 'Refactor' from the right-click context menu, it says 'Nothing here' and I cannot use the function.
Opening the menu Refactor and selecting Rename did not work.
What settings are needed to use the Refactor function?
Rider and Unity are connected and I can debug using breaks and such.
Here is a screenshot of the right-click context menu.
Please sign in to leave a comment.
Hello Ishii-kaju,
Thank you for contacting Rider support.
Is it just a regular executable code? Would you mind sharing a full-screen screenshot of Rider that demonstrates the issue?
Alse, we would appreciate it if you could share Rider logs as described above:
Thank you in advance and have a nice day!
Hello Dmitry Kazantsev
Thank you for your prompt response.
> Is it just a regular executable code? Would you mind sharing a full-screen screenshot of Rider that demonstrates the issue?
The code is executable and can be debugged using breakpoints.
Here is a full screenshot of Rider that demonstrates the issue.
Uploaded log file, ID is as follows.
Upload id: 2022_09_14_VrgkoAGRE5QsYpB8Wvpq1r (file: rider-logs-20220914-10353017927236889194074383.zip)
Hello, what exactly are you trying to refactor? Why indexing is disabled on your project, I can see all files are with `no index` message. If you try run Find usages, does it work?
I'm having a similar issue
JetBrains Rider 2022.3.1
Build #RD-223.8214.53, built on December 20, 2022
Refactor menu is still there but it does not contain contextual options. Below are two screens with missing "Extract Variable" and "Pull Members Up".
Expecting to see "Pull Members Up" option
Expecting to see "Extract Variable" option:
Sergiu, would it be possible to share your solution with us so we could replicate it on our side? You can do it with a new issue on our tracker.
For what it's worth, I just had this happen as well in Rider 2024.1.4 on Win11. I was trying to refactor a field name in a C# class. I unfortunately don't know what caused it, but the issue resolved itself after restarting both Rider and WebStorm (I had both running at the time). Restarting only Rider did not have an effect, but after I closed both and restarted Rider the Refactor menu came back. I then closed Rider again and restarted both WebStorm and Rider and the menu was still there as expected.
Hello Shawn,
Thank you for sharing your experience. That sounds weird. We would appreciate it if you could share additional information the next time you observe this issue.
Have a nice day!
Can anybody help me? I have the same problem; Interestingly, if I use the shortcut, it works.
I've JetBrains Rider 2024.1.2 version.
Hello Danny,
Thank you for contacting us. We are sorry to hear that you encounter this problem.
We would appreciate it if you could share additional information with us. Same as I requested from Shawn in my previous message in this thread.
Meantime, you might want to try the EAP version of the upcoming release: 2024.2 EAP 9. We add plenty of fixes and improvements with each release.
Have a nice day!
Hello Dmitry,
I've had the same issue happen with Rider 2024.1.3. Relaunching Rider did not fix the issue, even after closing all other programs – I'll try again after a reboot. In the meantime, screenshots and the logs were uploaded with UploadID 2024_09_10_xXxuJNxbyWpvWFZK6VkcnM.
Edit: Rebooting the PC did not work, but Invalidating Caches restored refactoring options when the “clear file system cache and Local History” option was checked.
I had the same problem, clearing the ReSharper caches and restarting resolved it (File > Invalidate Caches):
Hello Comagnan ,
Apologies for not responding earlier. Would you mind trying Rider 2024.2.5 to see if the issue occurs there? If so, we would appreciate it if you could share the diagnostic information as I described;
Hello Ruben ,
I am sorry to hear that you encounter such an issue. Unfortunately, we can't reproduce the issue. Should the issue occur again in the actual version of Rider (which is 2024.2.5 at the moment), we would appreciate it if you could share additional information as described below:
Have a nice day!