Refactor Rename Broken - SOLVED

已回答

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.

2
Avatar
Permanently deleted user

Forgot to mention I've already tried invalidating cache and restarting several times with NO effect.

0
Avatar
Permanently deleted user

Also can't refactor a class name at all.  Same behavior.

0

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).

1
Avatar
Permanently deleted user

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.

0

Same problem with PHPStorm 2022.1.3 and solved disabling the plugin https://plugins.jetbrains.com/plugin/9388-yii2-support

0

请先登录再写评论。