-
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
Formatting issue for venv activations on the terminal #24533
Comments
Hi @songyang-dev Thanks for filing this issue. |
I noticed this as well; one workaround is to specify the prompt when creating the venv:
Without it I was getting:
in the Environment changes tab for a terminal. |
Hey @anthonykim1, this issue might need further attention. @songyang-dev, you can help us out by closing this issue if the problem no longer exists, or adding more information. |
This issue still persists. |
Looking at your prompt PS1, it looks like you are using special prompts (those in which will add something to your .zshrc or other shell init files that will modify PS1 to look different). Terminal env var experiment would have no idea what is inside your .zshrc file hence the messed up prompt value :/ With opting out the terminal env var experiment, it is supposed to send in manual activation command to your terminal. I'm surprised that did not happen. Can you try to source activate manually yourself? I wonder if manually activating yourself will preserve the state. Also what happens if you change your Python locator from native to js? @songyang-dev |
Type: Bug
Behaviour
The (.venv) marker in the terminal is not formatted properly. Right now, it is just plain text .venv and immediately with no spacing follows the user@machine. It used to be
(.venv) user@machine
.Steps to reproduce:
Diagnostic data
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)Extension version: 2024.20.0
VS Code version: Code 1.95.3 (Universal) (f1a4fb101478ce6ec82fe9627c43efbf9e98c813, 2024-11-13T14:50:04.152Z)
OS version: Darwin arm64 24.1.0
Modes:
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
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
The text was updated successfully, but these errors were encountered: