How to refresh code check?


I have installed PyCharm 5.0.5 for Mac, and lately, after some hours working, the syntax checker shows me errors that really don't. For example, declaring a new variable  (var_name = None) or using variables previously defined,...

I need to restart the whole PyCharm application in order to get a free-errors code.

Is there any way to refresh the code check without restarting? or any way to avoid this issue?


Thanks in advance


Please try File| Invalidate Caches/Restart| Invalidate. Does it help?


Invalidate Caches only doesn't work. Only works if the restart is included. But restarting the PyCharm is what I tried to avoid.

SOLVED: I've found a solution to re-scan my code and correct all this false errors: Just select all - cut - paste. Ant the code is re-scanned.


this bug is still present. Thanks for the workaround Candido


Unbelievable this bug still exists, vscode can easily handle this without restart typescript server. Regret of my subscription


This still exists, Code Inspection Does Not Refresh on Edit, I have to cut and paste the whole Code or reopen the project to get rid of those yellow underlines.


GUYS! I SOLVED IT! You just need to go to File > setting > project:python-workspace(under"version control"),

 then set your Project Interpreter from None to your current Python version,

 and that will solve the case!


Please sign in to leave a comment.