Skip to content

Copilot chat cannot detect Python packages installed in the selected Conda Environment #847

@klaus3331

Description

@klaus3331

Type: Bug

The chat requests to run a test, but it is using the base conda environment which lacks the required packages. The displayed Python environment on the bottom-right corner is only used when running the code manually. Please fix it so that Copilot Chat uses the selected environment instead of the base environment.

Extension version: 0.30.1
VS Code version: Code 1.103.0 (Universal) (e3550cfac4b63ca4eafca7b601f0d2885817fd1f, 2025-08-06T21:40:10.271Z)
OS version: Darwin arm64 24.2.0
Modes:
Remote OS version: Linux x64 6.6.87.2-microsoft-standard-WSL2

System Info
Item Value
CPUs Apple M2 (8 x 2400)
GPU Status 2d_canvas: enabled
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
trees_in_viz: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 2, 2, 2
Memory (System) 8.00GB (0.07GB free)
Process Argv --crash-reporter-id 5ac9b6cb-2502-40d1-b91f-73c04a9200b4
Screen Reader no
VM 0%
Item Value
Remote SSH: WSL2_User
OS Linux x64 6.6.87.2-microsoft-standard-WSL2
CPUs AMD Ryzen 9 7950X3D 16-Core Processor (32 x 0)
Memory (System) 30.92GB (28.13GB free)
VM 0%
A/B Experiments
vsliv368:30146709
pythonvspyt551cf:31249601
binariesv615:30325510
nativeloc1:31344060
dwcopilot:31170013
dwoutputs:31242946
copilot_t_ci:31333650
e5gg6876:31282496
pythoneinst12:31285622
996jf627:31283433
pythonrdcb7:31342333
usemplatestapi:31297334
747dc170:31275177
6518g693:31334701
aj953862:31281341
9d2cg352:31346308
convertlamdaf:31368658
nesew2to5:31336538
agentclaude:31350858
replacestringexc:31350595
nes-set-on:31351930
6abeh943:31336334
0927b901:31350571
4gdec884:31348710
45650338:31358607
0cj2b977:31352657
0574c672:31362109
retryenabled:31370050

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions