Search code examples
pythonvisual-studio-codepylint

Installed pylint extension in vs code but it isn't identifying mistakes


Screenshot of what's enabled:

Screenshot of what's enabled

I installed latest version of Python 3.9.4 and also checked it in command prompt it was working well. But as I installed VS Code and also the python extension and made a file in order to check pylint, but pylint is not working even I have enabled it as you can see in image, so what can I do now?


Solution

  • 1.Make sure you've installed pylint to current selected interpreter.

    Run pip show pylint to see if it's located in current environment.

    2.Check if you set Jedi as "python.languageServer".

    Cause if I set Jedi on my machine, the linting won't work. It's recommended you install Pylance extension and in Settings.json set:

    "python.languageServer": "Pylance"