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
Is this a regression caused by fixing #23193? Was #23080 trying to fix this for a specific Windows/WSL situation? I don't know, but I thought I should link to both of those.
@Phrogz Try adding this setting to the WSL settings.json: "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"], then reload. You may have to close and reopen terminals after reload.
@karthiknadig Adding "python.experiments.optOutFrom": ["pythonTerminalEnvVarActivation"] to my user settings JSON does indeed fix the problem. Thanks for the workaround. :)
Type: Bug
Behaviour
In a virtual environment the Terminal does not show parentheses around the
.venv
prefix.Steps to reproduce:
Python: Create Environment…
and select Venv and a Python 3.13 interpreter.Python: Create Terminal
EXPECTED: Same PS1 prompt as seen when activating the venv in a WSL terminal:
(.venv) gkistner@wsl:~/work/test$
ACTUAL: The prompt has the correct colors separating the pieces, but lacks parentheses or space:
.venvgkistner@wsl:~/work/test$
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.16.1
VS Code version: Code 1.94.2 (384ff7382de624fb94dbaf6da11977bba1ecd427, 2024-10-09T16:08:44.566Z)
OS version: Windows_NT x64 10.0.22631
Modes:
Remote OS version: Linux x64 5.15.153.1-microsoft-standard-WSL2
python.languageServer
setting: DefaultUser Settings
Installed Extensions
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: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: