PyCharm does not highlight errors

Viewed 11493

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) enter image description here

if i run code analysis it shows the errors marked as INVALID in the window but it does not highlight the code. any idea?

7 Answers

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.

enter image description here

You can re-enable it by clicking the book icon Enter Reader Mode

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.

Settings > Editor > Inspections > Python

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.

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.

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 Problemsenter image description here

I just faced a similar issue. I ran my web with IIS so I didn't have an interpreter on my Pycharm project, when I added my virtual environment interpreter everything returned to work. I hope this will help someone in the future

Related