2026-03-10 14:32:59.694 [info] [test-by-project] Activating project-based testing mode
2026-03-10 14:32:59.695 [info] [test-by-project] Discovering projects for workspace: c:\Users\[USERNAME]\Documents\workspace\01-[COMPANY]\06-formation\anthropic\introduction-to-model-context-protocol\cli_project
2026-03-10 14:32:59.695 [info] Native locator: Refresh started
2026-03-10 14:32:59.695 [info] [test-by-project] Found 1 total Python projects from API
2026-03-10 14:32:59.695 [info] [test-by-project] Filtered to 1 projects in workspace
2026-03-10 14:32:59.695 [info] [test-by-project] Creating adapter for: cli_project at file:///c%3A/Users/[USERNAME]/Documents/workspace/01-[COMPANY]/06-formation/anthropic/introduction-to-model-context-protocol/cli_project
2026-03-10 14:32:59.781 [info] > pyenv which python
2026-03-10 14:32:59.781 [info] cwd: .
2026-03-10 14:33:40.423 [info] Skipping ActivatedEnv Detection: process.env.VSCODE_CLI !== '1'
2026-03-10 14:33:40.428 [info] > pyenv which python
2026-03-10 14:33:40.428 [info] cwd: .
2026-03-10 14:34:30.431 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2026-03-10 14:34:30.455 [info] > python -c "import sys;print(sys.executable)"
2026-03-10 14:34:36.668 [error] [test-by-project] Failed to create adapter for c:\Users\[USERNAME]\Documents\workspace\01-[COMPANY]\06-formation\anthropic\introduction-to-model-context-protocol\cli_project: [Error: Python Environment Tools (PET) failed after 3 restart attempts. Please reload the window or check the output channel for details. To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.
at S.ensureProcessRunning (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535872)
at S.doRefresh (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:540575)
at c.workerFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535168)
at o.workFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:287619)
at o.start (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:286434)]
2026-03-10 14:34:36.668 [info] [test-by-project] All adapters failed, falling back to default project
2026-03-10 14:34:36.668 [info] [test-by-project] Creating default project for: c:\Users\[USERNAME]\Documents\workspace\01-[COMPANY]\06-formation\anthropic\introduction-to-model-context-protocol\cli_project
2026-03-10 14:34:36.669 [info] Native locator: Refresh finished in 96973 ms
2026-03-10 14:34:36.670 [error] [
'Failed to activate a workspace, Class name = v, completed in 96975ms, has a falsy return value, Arg 1: <Uri:c:\\Users\\[USERNAME]\\Documents\\workspace\\01-[COMPANY]\\06-formation\\anthropic\\introduction-to-model-context-protocol\\cli_project\\mcp_client.py>, Arg 2: {"started":1773149579428}, Return Value: undefined',
[Error: Python Environment Tools (PET) failed after 3 restart attempts. Please reload the window or check the output channel for details. To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.
at S.ensureProcessRunning (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535872)
at S.doRefresh (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:540575)
at c.workerFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535168)
at o.workFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:287619)
at o.start (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:286434)]
]
2026-03-10 14:34:36.670 [error] Failure during activation. [Error: Python Environment Tools (PET) failed after 3 restart attempts. Please reload the window or check the output channel for details. To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.
at S.ensureProcessRunning (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535872)
at S.doRefresh (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:540575)
at c.workerFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535168)
at o.workFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:287619)
at o.start (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:286434)]
2026-03-10 14:34:36.670 [error] sendStartupTelemetry() failed. [Error: Python Environment Tools (PET) failed after 3 restart attempts. Please reload the window or check the output channel for details. To debug, run "Python Environments: Run Python Environment Tool (PET) in Terminal" from the Command Palette.
at S.ensureProcessRunning (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535872)
at S.doRefresh (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:540575)
at c.workerFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:535168)
at o.workFunc (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:287619)
at o.start (C:\Users\[USERNAME]\scoop\persist\vscode\data\extensions\ms-python.vscode-python-envs-1.20.1-win32-x64\dist\extension.js:2:286434)]
2026-03-10 14:34:36.671 [info] [test-by-project] Registered 1 project(s) for c:\Users\[USERNAME]\Documents\workspace\01-[COMPANY]\06-formation\anthropic\introduction-to-model-context-protocol\cli_project
2026-03-10 14:34:36.673 [info] [test-by-project] Activated 1 project(s) for c:\Users\[USERNAME]\Documents\workspace\01-[COMPANY]\06-formation\anthropic\introduction-to-model-context-protocol\cli_project
2026-03-10 14:34:36.675 [info] [test-by-project] Subscribed to Python project changes
2026-03-10 14:34:42.417 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2026-03-10 14:34:49.083 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2026-03-10 14:34:58.794 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2026-03-10 14:35:04.697 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2026-03-10 14:35:07.998 [error] Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute.
2026-03-10 14:36:33.081 [info] Active interpreter [global]: ./.venv/Scripts/python.exe
2026-03-10 14:36:33.090 [info] > ./.venv/Scripts/python.exe -c "import sys;print(sys.executable)"
2026-03-10 14:36:33.409 [error] Unable to find workspace for given file
2026-03-10 14:36:34.747 [error] Unable to find workspace for given file
Type: Bug
Behaviour
Before
I used to manage all my Python setup and projects with
uv. When I needed to create a new Python project, I did it like so:uv init→code <my-project>→ Select Python Interpreter (bottom-right button in the UI) → Browse →.venv\Scripts\python.exe.VSCode would then switch to my Python context and everything worked correctly.
Now
Same steps, but VSCode refuses to use the interpreter from the venv:
Unable to handle c:\Users\<my-path>\.venv\Scripts\python.exe(Source: Python Environments)What I tried ?
python.defaultInterpreterPath,python.createEnvironment.trigger, etc. → same issueSteps to reproduce:
1.108.2(extras 2026-01-26)cpython-3.13.1,cpython-3.14.2(windows-x86_64)uv init, then open it in VSCode.venv\Scripts\python.exe(also reproduced with the global install at
C:\Users\[USERNAME]\.local\bin\python.exe)Diagnostic data
Output for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)Extension version: 2026.2.0
VS Code version: Code 1.108.2 (c9d77990917f3102ada88be140d28b038d1dd7c7, 2026-01-21T13:52:09.270Z)
OS version: Windows_NT x64 10.0.26200
Modes:
python.languageServersetting: DefaultUser Settings
Installed Extensions
System Info
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments