Type: Bug
Behaviour
Expected vs. Actual
It should activate the selected virtual env before running a task.
But it doesn't activate.
Steps to reproduce:
- Create venv in a project
- Select it for the workspace
- Run this task
// .vscode/tasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "Test",
"type": "shell",
"command": "pip",
"args": ["freeze"],
"group": "build",
"isBackground": true,
"presentation": {
"reveal": "always",
"panel": "new"
}
}
]
}
Diagnostic data
- Python version (& distribution if applicable, e.g. Anaconda): 3.12.1
- Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
- Value of the
python.languageServer setting: Default
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
User Settings
languageServer: "Pylance"
Extension version: 2024.0.1
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:27:46.147Z)
OS version: Linux x64 5.4.0-171-generic
Modes:
System Info
| Item |
Value |
| CPUs |
Pentium(R) Dual-Core CPU E6700 @ 3.20GHz (2 x 3152) |
| GPU Status |
2d_canvas: enabled canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: enabled multiple_raster_threads: disabled_off opengl: enabled_on rasterization: enabled raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: enabled video_encode: disabled_software vulkan: disabled_off webgl: enabled webgl2: enabled webgpu: disabled_off |
| Load (avg) |
1, 0, 0 |
| Memory (System) |
7.73GB (3.85GB free) |
| Process Argv |
--unity-launch --crash-reporter-id 7f129a22-c841-4628-8ec3-576d658afc79 |
| Screen Reader |
no |
| VM |
0% |
| DESKTOP_SESSION |
cinnamon |
| XDG_CURRENT_DESKTOP |
X-Cinnamon |
| XDG_SESSION_DESKTOP |
cinnamon |
| XDG_SESSION_TYPE |
x11 |
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscorecescf:30445987
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
vscaat:30438848
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30951796
pythongtdpath:30769146
welcomedialogc:30910334
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
dsvsc019b:30953937
8082a590:30958339
3ef8e399:30949928
Type: Bug
Behaviour
Expected vs. Actual
It should activate the selected virtual env before running a task.
But it doesn't activate.
Steps to reproduce:
Diagnostic data
python.languageServersetting: DefaultOutput for
Pythonin theOutputpanel (View→Output, change the drop-down the upper-right of theOutputpanel toPython)User Settings
Extension version: 2024.0.1
VS Code version: Code 1.86.0 (05047486b6df5eb8d44b2ecd70ea3bdf775fd937, 2024-01-31T10:27:46.147Z)
OS version: Linux x64 5.4.0-171-generic
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: disabled_off
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments