Why doesn't my Pycharm highlight missing symbols in my python files?
Answered
For example, if 'span' is missing from your project, my PyCharm doesn't highlight it in red. It only reports missing errors when you actually run the program. This is annoying. How to fix it?
import span
Please sign in to leave a comment.
Do you have a python interpreter configured for your project?
If so, is it reproducible in a new project?
Hi, sorry I have to bring this question back again. It has had this problem for quite a while. Yes, I did have a python interpreter configured, otherwise, it won't run. I remove the ./.ideal folder, and the same problem exists. My pycharm build is on July 27, 2021.
It doesn't highlight unused imports and it doesn't highlight undefined variables.
Did I accidentally changed some setting in PyCharm? I can't find it somewhere.
Please check reader mode settings, or try to disable it entirely (Preferences | Editor | Reader Mode)
If it didn't help, please show a screenshot of your project structure (https://www.jetbrains.com/help/pycharm/project-structure-dialog.html) and a a screenshot of the whole IDE window showing the issue.