Refactor Rename Broken - SOLVED
Answered
I'm suddenly having some very buggy issues using refactor rename. I have a project with some files where I can't rename anything, some files I can only rename variables but not methods, other times I can refactor a method name but when I try and refactor it again it fails. When I press Shift+F6 the term is highlighted and I can change it but as soon as I press enter it reverts to the original name. I feel like I've done something boneheaded but I can't figure out what. I'm new to Intellij IDEA. I'm using the community edition. What am I missing?
FIXED: I didn't realize that there was a review at the bottom for some objects that had to be approved before the refactor took place. Boneheaded.
Please sign in to leave a comment.
Forgot to mention I've already tried invalidating cache and restarting several times with NO effect.
Also can't refactor a class name at all. Same behavior.
Please try File | Invalidate Caches | Invalidate and Restart.
Disable third-party plug-ins.
If the issue persists, please report at https://youtrack.jetbrains.com/issues/IDEA with the sample project and the logs attached (https://intellij-support.jetbrains.com/hc/articles/207241085).
I had the exact same problem just now, and I tracked down the cause to having the problem class imported in a Groovy Console session.
Same problem with PHPStorm 2022.1.3 and solved disabling the plugin https://plugins.jetbrains.com/plugin/9388-yii2-support