Skip to content

python.poetryPath default setting isn't working on Windows #9672

Closed
@nicolaerario

Description

@nicolaerario

Environment data

  • VS Code version: 1.14.1
  • Extension version (available under the Extensions sidebar): 2020.1.58038
  • OS and version: Windows 10
  • Python version (& distribution if applicable, e.g. Anaconda): 3.8.1
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): in project .venv
  • Relevant/affected Python packages and their versions: poetry v1.0.2 'in the path'
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info How to update the language server to the latest stable version #3977): both

Expected behaviour

poetry add --dev pylint

Actual behaviour

python -m pip install pylint

Steps to reproduce:

  1. poetry init
  2. poetry install
  3. create a python file
  4. the python extension start and activate the virtualenv as expected
  5. popup that inform no linter found in venv, ask to install
  6. this will install linter without poetry

The default python.poetryPath is set to poetry and this is fine on linux;
on windows however, though the executable is in the path and is actually poetry, it is called by the poetry.bat file
this means that the right python.poetryPath for windows had to be set to poetry.bat

This isn't really a big issue, maybe can only be explicit as a settings reference

Metadata

Metadata

Assignees

Labels

area-environmentsFeatures relating to handling interpreter environmentsbugIssue 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