Skip to content

pylint is not working unless specified in settings.json #9637

Closed
@ghost

Description

Environment data

  • VS Code version: 1.41.1
  • Extension version (available under the Extensions sidebar): 2020.1.58038 (13 January 2020)
  • OS and version: Windows 10 - 1909
  • Python version: 3.8.1 64-bit
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
  • Jedi or Language Server? : False

Expected behaviour

pylint should work if it is enabled in Workspace GUI setting

Actual behaviour

By default, pylint is enabled in both User settings and Workspace settings. Even if it is enabled, it still doesn't work unless you explicitly write:

"python.linting.pylintEnabled": true,

in your workspace, .vscode> settings.json

Steps to reproduce:

  1. Keep pylint enabled in both User and Workspace GUI settings. By default, they are already set to enabled.

  2. Create new workspace without modifying any settings.

  3. Create new python file and make errors. No linting is shown.

  4. Now create .vscode directory and create settings.json and write:

    "python.linting.pylintEnabled": true,

  5. Reload your workspace and linting will start working.

  6. Delete .vscode, linting will stop.

  7. pylint is still enabled in GUI settings but workspace is only picking up if it is declared in settings.json.

For those whose Language Server is not working, follow the same method. Write:

"python.jediEnabled": false

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions