-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debug terminal does not activate environment despite settings #22931
Comments
Same issue here on Windows 10 but I am not in debug enviro. |
Same here with python 3.8.1. It is being selected as the preferred environment (and automatically activated when opening new terminal window) but doesn't get selected on debug startup. |
Can you clarify what you mean by the "base" environment here? |
Closing as duplicate of microsoft/vscode#204694. |
What is the command I can run to check I am actually in a venv if it's not
in the prefix of the cli? (Win10)
…On Wed, 21 Feb 2024, 07:36 Kartik Raj, ***@***.***> wrote:
Debug the same script: base environment will be used.
Can you clarify what you mean by the "base" environment here?
—
Reply to this email directly, view it on GitHub
<#22931 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACSLKRB5UFFPC4FBHMUMSFLYUTULPAVCNFSM6AAAAABDP3ETU6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJUHAZTINRZGM>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Try |
I meant the base conda environment. If you run python on the terminal without activating any environments, it'll go to the base conda environment (assuming you have conda activated by default). |
This should be fixed with microsoft/vscode#204694. |
Type: Bug
Behaviour
Expected vs. Actual
The selected virtual environment should be used when running the debugger by default.
Actual: the base environment is used, ignoring any settings.
Steps to reproduce:
Diagnostic data
python.languageServer
setting: DefaultOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2024.0.1
VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:41:37.860Z)
OS version: Linux x64 6.7.4-200.fc39.x86_64
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
skia_graphite: disabled_off
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: