Wrong conda environment used in terminal #22817
Labels
info-needed
Issue requires more information from poster
triage-needed
Needs assignment to the proper sub-team
Type: Bug
Behaviour
Since the Activate Environments in Terminal Using Environment Variables update, i am experiencing issues with my conda environment in the VSCode terminal
Expected vs. Actual
When running pytest in my terminal, i get errors pointing that some packages are not installed.
Hovering over the 'bash' logo as suggested in the update link shows that the right conda env is being used, but running the pytest command clearly indicates that my conda env isn't actually being used. (Python: Activated environment for ~/miniconda3/envs/myanonymizedenv/bin/python)
I have tried deactivating and reactivating the conda env, setting the "terminal.integrated.inheritEnv" parameter to true and back to false, setting the "terminal.integrated.shellIntegration.enabled" parameter to true and back to false.
I also don't have any conda environment being activated directly in my .bashrc
I am pretty sure this is a VSCode problem since running pytest in my ubuntu terminal after activating the conda environment works just fine and doesn't show any package related errors.
Extension version: 2023.22.1
VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:19.222Z)
OS version: Linux x64 6.5.0-15-generic
Modes:
System Info
canvas_oop_rasterization: disabled_off
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
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: