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

3

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

1
Avatar
Permanently deleted user

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.

17

this bug is still present. Thanks for the workaround Candido

3

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

2

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.

0

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!

0

请先登录再写评论。