Skip to content

Python agent tool to fetch env info fails for venv setup with uv #25233

@ulugbekna

Description

@ulugbekna

Type: Bug

Type: Bug

repro:

  1. have a venv created using uv
  2. ask copilot agent something that requires using "fetch env info" tool
  3. see error
Image

Extension version: 2025.6.101
VS Code version: Code - Insiders 1.102.0-insider (ac320d66c838f2bee42b650ec7409807e40dbd27, 2025-07-04T07:03:36.959Z)
OS version: Darwin arm64 24.5.0
Modes:
Remote OS version: Linux x64 6.8.0-1030-azure

System Info
Item Value
CPUs Apple M1 Pro (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) 7, 6, 9
Memory (System) 32.00GB (0.08GB free)
Process Argv --log github.vscode-pull-request-github=debug --log github.copilot-chat=trace --crash-reporter-id 3184aec0-4b31-4764-bfb0-162155975430
Screen Reader no
VM 0%
Item Value
Remote SSH: 20.185.25.222
OS Linux x64 6.8.0-1030-azure
CPUs Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz (6 x 0)
Memory (System) 110.05GB (106.20GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249598
vscod805:30301674
c4g48928:30535728
vscrp:30624060
962ge761:30841072
dsvsc014:30777825
dsvsc015:30821418
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
dwnewjupytercf:31046870
pythonrstrctxt:31093868
nativeloc1:31118317
e80f6927:31120813
dwcopilot:31158714
c3hdf307:31184662
471b6256:31240254
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31333650
g012b348:31231168
pythoneinst12:31251391
bgtreat:31252123
c7cif404:31309980
pythonpulldiag:31287486
6gi0g917:31259950
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
jdghv92:31317040
747dc170:31275146
pythoncompactctx:31296835
6518g693:31302842
generatesymbolt:31280541
convertfstringf:31280702
j97ad248:31306657
usemarketplace:31336439
0g1h6703:31329154
nes-emitfast-1:31333560
replacestringexc:31340153
6abeh943:31336334
nes-conv-11:31337514
0927b901:31340060
gji67723:31340537

Extension version: 2025.9.2025070301
VS Code version: Code - Insiders 1.102.0-insider (ac320d66c838f2bee42b650ec7409807e40dbd27, 2025-07-04T07:03:36.959Z)
OS version: Darwin arm64 24.5.0
Modes:
Remote OS version: Linux x64 6.8.0-1030-azure

  • Python version (& distribution if applicable, e.g. Anaconda): 3.12.11
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

terminal
• activateEnvironment: false

Installed Extensions
Extension Name Extension Id Version
copilot Git 1.339.1658
copilot-chat Git 0.29.2025070401
debugpy ms- 2025.11.2025070101
jupyter ms- 2025.6.2025070201
jupyter-renderers ms- 1.3.2025062701
python ms- 2025.9.2025070301
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-pull-request-github Git 0.113.2025070320
vscode-pylance ms- 2025.6.101
vscode-python-envs ms- 0.3.11841013
System Info
Item Value
CPUs Apple M1 Pro (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) 6, 7, 8
Memory (System) 32.00GB (0.10GB free)
Process Argv --log github.vscode-pull-request-github=debug --log github.copilot-chat=trace --crash-reporter-id 3184aec0-4b31-4764-bfb0-162155975430
Screen Reader no
VM 0%
Item Value
Remote SSH: 20.185.25.222
OS Linux x64 6.8.0-1030-azure
CPUs Intel(R) Xeon(R) CPU E5-2690 v4 @ 2.60GHz (6 x 0)
Memory (System) 110.05GB (106.30GB free)
VM 0%
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
pythonvspyt551cf:31249598
vscod805:30301674
c4g48928:30535728
vscrp:30624060
962ge761:30841072
dsvsc014:30777825
dsvsc015:30821418
h48ei257:31000450
pythontbext0:30879054
cppperfnew:30980852
dwnewjupytercf:31046870
pythonrstrctxt:31093868
nativeloc1:31118317
e80f6927:31120813
dwcopilot:31158714
c3hdf307:31184662
471b6256:31240254
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31333650
g012b348:31231168
pythoneinst12:31251391
bgtreat:31252123
c7cif404:31309980
pythonpulldiag:31287486
6gi0g917:31259950
996jf627:31264550
pythonrdcb7:31268811
usemplatestapi:31297334
jdghv92:31317040
747dc170:31275146
pythoncompactctx:31296835
6518g693:31302842
generatesymbolt:31280541
convertfstringf:31280702
j97ad248:31306657
usemarketplace:31336439
0g1h6703:31329154
nes-emitfast-1:31333560
replacestringexc:31340153
6abeh943:31336334
nes-conv-11:31337514
0927b901:31340060
gji67723:31340537

Metadata

Metadata

Assignees

Labels

triage-neededNeeds assignment to the proper sub-team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions