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.

 

0
5 comments

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:

  • Clear everything from the `/Users⁩/⁨{User}/⁨Library/⁨Logs⁩/JetBrains/Rider{version}` folder;
  • Enable `Refactorings` trace scenario via `Help | Diagnostic Tools | Choose Trace Scenarios`;
  • Reproduce the issue;
  • Press `Help | Collect Logs`;
  • Disable the trace scenario you enabled;
  • Upload the archive generated to the Upload service and let me know the Upload ID.

Thank you in advance and have a nice day!

0

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)

0

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? 

0

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:

1

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.

0

Please sign in to leave a comment.