-
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
Double virtual env prompt when using pure prompt in Vscode #22983
Comments
Please provide the debug logs which can help diagnose the issue:
Output for
|
Is there a particular section that is useful? This dumps some sensitive information (e.g., ENV variables with keys) - I can redact that, it just appears multiple times |
Here's the trace log.txt |
I expect "pure" prompt is set up in one of the initialization scripts for zsh ( For now, you can simply set |
Great, thank you! Will follow #22128! |
Type: Bug
Behaviour
Expected vs. Actual
Expected: virtual environment information should only appear once.
Actual: virtual environment appears twice
I realize that it's difficult to support all custom shells, so let me know if you think this is outside of the scope.
Steps to reproduce:
Note: the default PS1 of Pure is as follows:
%{%(12V.%F{$prompt_pure_colors[virtualenv]}%12v%f .)%(?.%F{$prompt_pure_colors[prompt:success]}.%F{$prompt_pure_colors[prompt:error]})${prompt_pure_state[prompt]}%f %}
It looks like Vscode modifies PS1 with
PS1=(pipeline-ErT9kUro-py3.11) ${env:PS1}
This causes the virtual environment to appear twice:
(pipeline-ErT9kUro-py3.11) pipeline-ErT9kUro-py3.11 >
Diagnostic data
python.languageServer
setting: PylanceOutput for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)User Settings
Extension version: 2024.1.10571728
VS Code version: Code 1.86.2 (903b1e9d8990623e3d7da1df3d33db3e42d80eda, 2024-02-13T19:42:13.651Z)
OS version: Darwin x64 23.3.0
Modes:
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: disabled_software
video_encode: disabled_software
webgl: unavailable_software
webgl2: unavailable_software
webgpu: unavailable_software
A/B Experiments
The text was updated successfully, but these errors were encountered: