I'm just amazed, but is there really no function for highlighting directories and files with problematic code?

The thing is, in one of my projects, I used JS in PyCharm, and there is a linter called ESLint, which instantly highlights the directory with the file containing the error in red when an error appears in the code.

ESLint highlight example

I tried Ruff and Pyright with the default settings, but nothing is highlighted. There is no setting with this function in PyCharm itself either. Maybe I'm doing something wrong? Why, if it works in JS, can't it work with Python?

The most recent thread with an answer to a similar question dates back to May 29, 2024: https://intellij-support.jetbrains.com/hc/en-us/community/posts/19216999840274-How-to-show-custom-inspection-errors-in-project-tree

Maybe something has changed since then? Or are there other ways to enable this?

2 Replies 2

When I use pycharm it shows what errors there are perfectly fine. You could try resetting settings or uninstall and reinstall

PyCharm only shows syntax errors like that, I think it was done by design years ago as 1) Python modules used to have a ton of warnings (before type annotations were added to the language), 2) inspections are lazy so you won't even get a syntax error before you interact with a module containing it or run whole-project introspection. Consider reporting a feature request in PyCharm issue tracker https://youtrack.jetbrains.com/issues/PY and explaining your usecase and motivation

Your Reply

By clicking “Post Your Reply”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.