Refactor / rename not working, or stops working

When I rightclick a method name or function name, I have the option to Refactor - Rename...

I can fill out the dialog, but no matter the options I select, once I click 'Refactor' or 'Preview', the dialog closes and nothing happens. No error message, nothing in the event log, no change to the source.

The subject says 'stops working' because restarting the IDE seems to fix the problem. Note that in all cases where I've encountered the problem, I had multiple projects in separate windows of the IDE open - not sure if that affects it though (it's just very common for me).

PyCharm 2017.3.2 (Professional Edition)
Build #PY-173.4127.16, built on December 19, 2017
Licensed to Jaap van der Velde
You have a perpetual fallback license for this version
Subscription is active until February 12, 2019
JRE: 1.8.0_152-release-1024-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 7 6.1

I've also recently started noticing extreme lagginess of my entire PC when PyCharm is open, but I'm suspecting recently replaced anti-virus of causing this problem. So, only mentioning it if it helps in identifying my refactoring issue. The anti-virus doesn't stop the refactoring from working initially, so I don't think there's a direct causal relationship there.

 

Cheers, JAAP.

2 comments

PyCharm 2017.3.2 (Professional Edition)
Build #PY-173.4127.16, built on December 19, 2017
Licensed to Александр Плосков
Subscription is active until October 22, 2018
For educational use only.
JRE: 1.8.0_152-release-1024-b8 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Have same problem. Invalidate caches and restart solved my problem. Just restart IDE cannot solve this issue.

0

Good to know I'm not the only one. I will try to invalidate caches next time as well.

However, just a restart of the IDE did solve the problem every time, but of course it also always returns at some point.

0

Please sign in to leave a comment.