-
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
2024.20.0 python extension is unable to find poetry virtual environment if workspace is on a different drive than C
(virtual env is cached on different drive than workspace)
#24525
Comments
@kompre That view is from The issue still could be in the python extension, can you share the output from "Python Environments" channel? |
Upon revision, the situation seems to be slightly different from what I described yesterday:
I usually work on the
|
@kompre In your settings do you have |
I've upgraded again to
To be sure I've downgraded to |
Also having this problem, fixed by downgradeing to 2024.10. Tried adding the condapath and default interpretter to my workspace settings, nothing. Clicking on a virtual environment on a mapped drive produces a failed to initialize error. { |
Can you also share the logs from Output > Python locator? This looks like the native locator ( |
Type: Bug
Behaviour
I'm using poetry to handle virtual environment and prior to version
2024.20.02024.10.0? of the python extension, all worked fine.With the 2024.20.0 vscode it's unable to find the virtual environment if the the workspace is located in a different drive than the
C:\
. I've tried with creating a workspaceon(actually this works), onD:\
(a partition on the same sdd)Z:\
(a mapped drive), and on\\fileserver\
(a samba drive on the network): nothing work except for a workspace on theC:\
drive (which is where the main OS is installed, and so python and the poetry cache)Each of the above case used to work, and indeed downgrading to earlier version (
2024.18.1v2024.10.0) fix the issue for mapped drive (samba share\\fileserver\
still missing in action).Steps to reproduce:
to NOT detect poetry virtual env
poetry
in the workspaceto detect poetry virtual env
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.20.0
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Windows_NT x64 10.0.22631
Modes:
python.languageServer
setting: DefaultUser Settings
Installed Extensions
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: