You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The functions added to the activate script in the virtual environment are not functioning properly. While environment variables set via export can be verified in the terminal, the functions cannot be found.
Steps to reproduce:
Open the /bin/activate script.
Add the following lines at the end of the file:
export test=1
qwe () {
commandecho qwe
}
Verify the result by running the following commands:
echo$test# prints 'test'
qwe # qwe: command not found
Manually sourcing the script works as expected.
source<venv>/bin/activate
qwe # prints 'qwe'
Diagnostic data
Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)
XXX
Extension version: 2024.20.0
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Linux x64 6.8.0-49-generic
Modes:
Remote OS version: Linux x64 6.8.0-49-generic
System Info
Item
Value
CPUs
Intel(R) Core(TM) i7-10700 CPU @ 2.90GHz (16 x 4599)
Type: Bug
Behaviour
The functions added to the activate script in the virtual environment are not functioning properly. While environment variables set via export can be verified in the terminal, the functions cannot be found.
Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.20.0
VS Code version: Code 1.95.3 (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Linux x64 6.8.0-49-generic
Modes:
Remote OS version: Linux x64 6.8.0-49-generic
System Info
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: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
webnn: disabled_off
The text was updated successfully, but these errors were encountered: