pythonpycharm

Pycharm stopped displaying import errors


I was wondering how to get PyCharm to display import errors?

It was previously working for me and now it stopped. PyCharm still shows other python syntax errors, and will autocomplete. However, there is no red squiggly line shown under unknown references.

enter image description here


Solution

  • You can control all of the code inspection errors in the settings.

    Go to File then Settings. Search for Inspections in the left pane. In the search area on the right type "Python" to see all inspections for Python. Go down to "Unresolved references" and make sure it is checked to fix your problem.

    The following is a screenshot showing how it should look:

    Inspection settings