-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python.poetryPath default setting isn't working on Windows #9672
Comments
Looks like there are two issues here.
@nicolaerario Can you create a separate issue for the library installation? this would be easier for tracking. |
Sure I can do it, but it is really needed? I mean that, if poetryPath points to poetry.bat file, libraries installation is fine. |
When you explicitly set the |
The terminal pass Edit: corrected phone text formatting issue |
Curious, why do we have to use I'd check the recommended approach for running poetry on windows. If there's an executable, then we should use the executable in the setting else our code needs to change to support |
Just to add some details: |
Maybe we shouldn't let poetryPath point to the I think we could prompt an error saying: "The path to poetry is invalid. Please point it to the executable file." What do folks here think? |
de facto pointing to the executable file ( |
Spike resultsDue to an upstream Windows only bug on node nodejs/node-v0.x-archive#2318 (also see stack overflow answer), The easiest option is just to use
It works fine both for |
Environment data
"python.jediEnabled"
set to; more info How to update the language server to the latest stable version #3977): bothExpected behaviour
poetry add --dev pylint
Actual behaviour
python -m pip install pylint
Steps to reproduce:
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 thepoetry.bat
filethis 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
The text was updated successfully, but these errors were encountered: