Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Visual Studio Code is not showing alert for undefined class methods

I am using vscode with Pylance and Pylint, and it does not show an alert for undefined class methods as Pycharm does.

Example:

Pycharm

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Pycharm example

Visual Studio Code

Visual Studio Code example

What I tried:

  • Used a different linter (Flake 8)
  • Made sure there are no settings that might disable that specific linter error
  • Selected the linter (cmd+shift+p > select linter)

Is there’s any way to enable this?

>Solution :

It is recommended that you clear all settings and make sure pylint is installed. Then enable linting and select pylint to see if it works.

Adding the following configuration to the setting.json has the same effect:

    "python.linting.enabled": true,
    "python.linting.pylintEnabled": true,
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading