forked from DonJayamanne/pythonVSCode
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team
Description
Type: Bug
Behaviour
Terminal prompt for uv venv was weird like vscode-python-uvfengye87@Fengs-MacBook-Pro vscode-python-uv % , which should be (vscode-python-uv) fengye87@Fengs-MacBook-Pro vscode-python-uv % like it would with venv created by python -m venv
Steps to reproduce:
- Create project dir:
mkdir vscode-python-uv && cd vscode-python-uv - Init project and create venv with uv:
uv init && uv venv - Open project dir with VSCode and open terminal
- The terminal prompt was expected to be like
(vscode-python-uv) fengye87@Fengs-MacBook-Pro vscode-python-uv %, but instead it wasvscode-python-uvfengye87@Fengs-MacBook-Pro vscode-python-uv %
Diagnostic data
Output for Python in the Output panel (ViewβOutput, change the drop-down the upper-right of the Output panel to Python)
2025-07-14 10:30:54.124 [info] Experiment 'pythonSurveyNotification' is active
2025-07-14 10:30:54.124 [info] Experiment 'pythonTerminalEnvVarActivation' is active
2025-07-14 10:30:54.124 [info] Native locator: Refresh started
2025-07-14 10:30:54.124 [info] Native locator: Refresh started
2025-07-14 10:30:54.124 [info] > pyenv which python
2025-07-14 10:30:54.124 [info] cwd: .
2025-07-14 10:30:54.139 [info] Python interpreter path: ./.venv/bin/python
2025-07-14 10:30:55.526 [info] Native locator: Refresh finished in 1808 ms
2025-07-14 10:30:55.535 [info] > . ./.venv/bin/activate && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python ~/.vscode/extensions/ms-python.python-2025.10.0-darwin-arm64/python_files/printEnvVariables.py
2025-07-14 10:30:55.535 [info] shell: zsh
2025-07-14 10:30:55.720 [info] > /usr/bin/python3 ~/.vscode/extensions/ms-python.python-2025.10.0-darwin-arm64/python_files/printEnvVariables.py
2025-07-14 10:30:55.720 [info] shell: zsh
2025-07-14 10:30:55.774 [info] Prepending environment variable PATH in collection with /Users/fengye87/.vscode/extensions/ms-python.python-2025.10.0-darwin-arm64/python_files/deactivate/zsh:/Users/fengye87/Projects/vscode-python-uv/.venv/bin: {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-07-14 10:30:55.774 [info] Setting environment variable VIRTUAL_ENV in collection to /Users/fengye87/Projects/vscode-python-uv/.venv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-07-14 10:30:55.774 [info] Setting environment variable VIRTUAL_ENV_PROMPT in collection to vscode-python-uv {"applyAtShellIntegration":true,"applyAtProcessCreation":true}
2025-07-14 10:30:55.774 [info] Prepending environment variable PS1 in collection with vscode-python-uv {"applyAtShellIntegration":true,"applyAtProcessCreation":false}
2025-07-14 10:30:55.774 [info] Send text to terminal: /usr/bin/python3 /Users/fengye87/.vscode/extensions/ms-python.python-2025.10.0-darwin-arm64/python_files/printEnvVariablesToFile.py /Users/fengye87/.vscode/extensions/ms-python.python-2025.10.0-darwin-arm64/python_files/deactivate/zsh/envVars.txt
2025-07-14 10:30:56.231 [info] Starting Pylance language server.
Extension version: 2025.10.0
VS Code version: Code 1.102.0 (Universal) (cb0c47c0cfaad0757385834bd89d410c78a856c0, 2025-07-09T22:10:34.600Z)
OS version: Darwin arm64 24.5.0
Modes:
- Python version (& distribution if applicable, e.g. Anaconda): 3.11.13
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
- Value of the
python.languageServersetting: Default
User Settings
languageServer: "Pylance"
Installed Extensions
| Extension Name | Extension Id | Version |
|---|---|---|
| black-formatter | ms- | 2025.2.0 |
| catppuccin-vsc | Cat | 3.17.0 |
| catppuccin-vsc-icons | Cat | 1.21.0 |
| claude-code | Ant | 1.0.48 |
| copilot | Git | 1.342.0 |
| copilot-chat | Git | 0.29.0 |
| debugpy | ms- | 2025.10.0 |
| go | gol | 0.48.0 |
| isort | ms- | 2025.0.0 |
| js-debug | ms- | 1.102.0 |
| js-debug-companion | ms- | 1.1.3 |
| prettier-vscode | esb | 11.0.0 |
| python | ms- | 2025.10.0 |
| vscode-js-profile-table | ms- | 1.0.10 |
| vscode-pylance | ms- | 2025.6.2 |
| vscode-python-envs | ms- | 0.3.11841011 |
System Info
| Item | Value |
|---|---|
| CPUs | Apple M1 (8 x 2400) |
| GPU Status | 2d_canvas: enabled 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: enabled_on video_decode: enabled video_encode: enabled webgl: enabled webgl2: enabled webgpu: enabled webnn: disabled_off |
| Load (avg) | 2, 2, 2 |
| Memory (System) | 16.00GB (0.06GB free) |
| Process Argv | --crash-reporter-id ed84ad75-b11a-4d11-87a4-d6071b992a1f |
| Screen Reader | no |
| VM | 0% |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551:31249599
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
h48ei257:31000450
cppperfnew:31000557
dwnewjupytercf:31046870
nativeloc1:31344060
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
hdaa2157:31222309
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
c7cif404:31314491
pythonpulldiag:31343502
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
0aa6g176:31307128
747dc170:31275177
6518g693:31334701
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
pylancequickfixt:31329274
9d2cg352:31346308
usemarketplace:31343026
nesew2to5:31336538
agentclaude:31335815
82j33506:31327384
nes-diff-11:31337487
replacestringexc:31346310
6abeh943:31336334
yijiwantestdri0626-t:31336930
0927b901:31346033
4gdec884:31342391
i3fce822:31345573
gitanon112
Metadata
Metadata
Assignees
Labels
triage-neededNeeds assignment to the proper sub-teamNeeds assignment to the proper sub-team