-
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
Terminal activate venv with prefix of folder name, not my setting prefix. And I can't actually deactivate it. #22895
Comments
Please provide the debug logs which can help diagnose the issue:
Output for
|
|
Could you clarify what you mean by "setting(development)", where is that setting set? |
This should likely be fixed by #22128 |
the prefix I set for this virtual environment, which is "development". |
where did you set it? |
|
Type: Bug
Behaviour
Expected vs. Actual
When I startup or open a new terminal in vscode, it activate venv of folder with my chosen interpreter, but with prefix of floder name(.env) not my setting(development), and i can re-activate (development) venv. It looks really wired. And when I
deactivate
the venv, it seems like re-activating a "default" terminal, for when Ictrl+D
, it back to (.env) venv.Btw after I disable
python>Terminal: Activate Environment
in settings, venv(.env) is still activitated when I open a Terminal. I'm not sure if it's a bug or I misunderstand this term.Steps to reproduce:
eba is my alias of
source .env/bin/activate
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.1 (31c37ee8f63491495ac49e43b8544550fbae4533, 2024-02-07T09:07:19.849Z)
OS version: Linux x64 6.5.0-17-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
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: