-
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
default Interpreter path is not respected when i open a project #23880
Comments
@ManiMozaffar The |
Actually, could you share the logs from Output > Python |
It actually does work. bcs when I'm trying to select interepeter, I see that first option is the correct python path, but mentioned "from default path". so I guess vscode is smartly trying to find python binary
I can't reproduce it right now, it works now. but sometimes it happen. next time if it happened, i'd share the logs with you here. |
I think i know what's going on @karthiknadig So I'm setting the default like this: "${workspaceFolder}/.venv" which is using "dynamic" path per project. then it appear on my suggestion bar as recommended per setting, so when I pick it, it overwrite that path with absolute path that point to a certain project venv. |
Type: Bug
Behaviour
VSCode doesn't respect the value i set in my user setting json. Idh similiar setting in workspace, so that's not what causing issue. it always show up as suggestion, but not as acitvated.
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
i have it like this
XXX
Steps to reproduce:
"python.defaultInterpreterPath": "${workspaceFolder}/.venv",
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.10.0
VS Code version: Code 1.91.1 (f1e16e1e6214d7c44d078b1f0607b2388f29d729, 2024-07-09T22:07:46.768Z)
OS version: Darwin arm64 23.2.0
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
webgl: enabled
webgl2: enabled
webgpu: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: