PyCharm Stopped Showing Errors in Code
Here are my Pycharm details,
PyCharm 2022.2.4 (Community Edition)
Build #PC-222.4459.20, built on November 17, 2022
Runtime version: 17.0.5+7-b469.71 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-53-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Non-Bundled Plugins:
com.jetbrains.plugins.ini4idea (222.4459.20)
zielu.gittoolbox (212.10.1)
ru.meanmail.plugin.requirements (2022.4)
Docker (222.4459.20)
Current Desktop: KDE
The problem is, Pycharm stopped showing any kind of errors in the code in the problem tab under the editor.
As you see, the only complaint it has is a trivial one about some blank lines, when actually the code has multiple undefined variables and syntax errors. Part of it is my fault because at some point, I right clicked and by mistake removed the problem tab from the sidebar. Somehow I brought it back, but now it is failing to show any error. Before the accident, it was not only highlighting undefined name, but also helped me import/define it.
Even when I run pylint on the same file, this is a sample of what I am getting, along with a score of -14/10 (never seen pylint giving negative score).
celery_worker.py:28:0: E0602: Undefined variable 'logging' (undefined-variable)
celery_worker.py:29:26: E0602: Undefined variable 'logging' (undefined-variable)
celery_worker.py:31:0: E0602: Undefined variable 'tf' (undefined-variable)
celery_worker.py:35:8: E0602: Undefined variable 'Celery' (undefined-variable)
How can I set up pycharm to show every possible error (including in function arguments and undefined variables) and apply the strictest possible standard like it was doing before?
Please sign in to leave a comment.
Hello,
Inspections might be turned off; you can check them by navigating to Settings | Editor | Inspections, scrolling down to Python, and expanding the list. Here is a more detailed guide regarding inspections in PyCharm: https://www.jetbrains.com/help/pycharm/disabling-and-enabling-inspections.html