'PyCharm does not highlight errors
i've a problem with PyCharm v2.7.
it does not show me errors.
i've configured it to show them as here
but nothing.
here a screenshot of what i see (no error displayed)
if i run code analysis it shows the errors marked as INVALID in the window but it does not highlight the code. any idea?
Solution 1:[1]
I had this issue recently on PyCharm 2020.3.3 Community Edition.
What I've found is in the top right corner of the editor there is a Reader Mode
button.
If you click it you turn the Reader Mode off and then you can see your errors.
Solution 2:[2]
In my case, I had some ticks disabled in the Python Inspections menu in Settings > Editor > Inspections > Python
. I have ticked everything and applied, and now it is working.
I don't really understand why this happened as the problem arose from one day to another. I had even re-installed the whole PyCharm, trying older versions, and deleted the .pycharm configuration folder from home.
Solution 3:[3]
I had the same issue with PyCharm Community Edition, v.2016.3.2. To fix,
go to Preferences...
from the PyCharm menu, and open Editor/Colors & Fonts/General
Now go to Errors and Warnings/Error
under your current schema.
I also had to set my Project Interpreter
under Preferences/Project:<name>/Project Interpreter
.
See screenshot.
Solution 4:[4]
None of the previous answers worked for me when I ran into this issue, but I was able to fix it by doing a hard reset on my PyCharm settings:
From the main menu, select File | Manage IDE Settings | Restore Default Settings.
You will lose all your custom settings this way of course, but this was the only thing that worked for me.
Solution 5:[5]
I have tried many things, but only Invalidate Caches
did the trick, after that I could hover the green arrow (top right side) and change Highlight
to All Problems
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Jerzy Kiler |
Solution 2 | josepdecid |
Solution 3 | radtek |
Solution 4 | Saeed |
Solution 5 | shlomiLan |