Code inspection does not refresh on edit
已回答
Hi, since I upgraded to PyCharm 2016.1, the code inspection triggers any errors on code changes but does not clear the error highlight on edit. Once the code inspection finds an error, even if I correct the error/typo in the editor it still thinks there is an error. The error messages still refer to the old version of the code. I tried invalidating the cache but that did not help. Once I set the "Highlighing Level" to "None" and then back to "Inspections", the errors go away.
I am currently using:
PyCharm Community Edition 2016.1.2
Build #PC-145.844, built on April 8, 2016
JRE: 1.8.0_45-b14 amd64
JVM: Java HotSpot(TM) 64-Bit Server VM by Oracle Corporation
Thanks
-Selim
请先登录再写评论。
I've just found that in my version 2023.3.1 the code inspection uses Qodana plugin. Once I disable it - it triggers the inspection. However, if I make errors with Qodana disabled and then I fix them - the stale error markings persist. Enabling Qodana back does not clear them.
So each time I want to trigger code inspection I have to disable Qodana if it is enabled or enable and then disable it.
Huh… Any better workaround?
Evgeny Vaisman Is the same behavior reproduced on the 2024.1 version? If so, looks like you're facing the following - https://youtrack.jetbrains.com/issue/PY-63255/PyCharm-code-inspection-does-not-refresh-on-edit-in-Python
Unfortunately, I don't have a 2024.1 version to try out. This is a corporate install, so it takes a while to newer versions to become available