Skip to content

mypy/pylint paths are incorrectly synced and not found when custom config is removed #17999

@ssbarnea

Description

@ssbarnea

Main issue that vscode seems to be unable to detect mypy/pylint when these are installed in PATH and when its custom settings are emptied, as seen in screenshot below.

The prompt to install appears and vscode successfully installs them but that does not help it find them, even if they are in PATH.

The workaround is to configure tool names inside their path settings instead of having them empty. Still this should not be needed and emptying them should reset to defaults.

Environment data

  • Language Server version: v2021.11.1422169775
  • OS and version: Fedora 34
  • Python version (& distribution if applicable, e.g. Anaconda): 3.10

Expected behaviour

  • clearing mypy/pylint paths setting in settings should enable python extension from finding the tools that itself installed seconds ago.
  • vscode should not sync path settings as pylint or mypy by default as they are obviously not portable

Shortly: empty configuration of mypy/pylint paths should assume these are to be found in PATH, but this does not happen

Actual behaviour

  • vscode complains about not being able to find mypy/pylint when running on a remote host, basically because it did sync settings.
  • After configuring those paths to not sync and clearing them as prompt to install missing tools appears. That is indeed a good sign.
  • After vscode itself installs the missing tools (using --user), it still fails to find them. As seen in screenshot below it lacks the ability to look inside PATH by default.

Logs

XXX

Code Snippet / Additional information

XXX

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-lintingbugIssue identified by VS Code Team member as probable bugneeds PRReady to be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions