Skip to content

Pylint not working in virtual Environment in VS code #11964

Closed
@eduzen

Description

@eduzen

Environment data

  • VS Code version: Version: 1.45.1
  • Extension version (available under the Extensions sidebar): 2020.5.80290
  • OS and version: macos Catalina, 10.15.4
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.8
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): .virtualenv
  • Jedi or Language Server?: Language Server
  • Value of the python.languageServer setting: XXX

Expected behaviour

I saw this issue #7620 and it happens also to me. Pylint doesn't work when is inside of venv. I have my settings.json:

{
    "python.venvPath": "~/.virtualenvs/eduzen/bin/python",
    "python.pythonPath": "~/.virtualenvs/eduzen/bin/python",
    "python.linting.pylintPath": "~/.virtualenvs/eduzen/bin/pylint",
    "python.linting.enabled": true,
    "python.linting.pylintEnabled": true,
}

If I specify another path for pylint like ~/.pyenv/shims/pylint works.

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