Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Missing brackts around virtual environment name in command prompt #24917

Copy link
Copy link
Open
@leo-maxwell

Description

@leo-maxwell
Issue body actions

Type: Bug

Behaviour

When using pyenv-virtualenv to create a virtual environment on macOS, enabling auto activation of virtual environment in terminal option will cause the terminal prompt to have a unbracketed env name in command prompt:
Image

Steps to reproduce:

  1. install homebrew
  2. install bash using brew and use brew installed bash as default terminal
  3. install pyenv as well as its extension pyenv-virtualenv
  4. create a new virtual environment using pyenv virtualenv with latest python version (3.13+)
  5. select this env as intepreter and enable the option described above

Diagnostic data

launch.json configuration

XXX

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Output for Python Debugger in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python Debugger)

XXX

# Behaviour

XXX

Steps to reproduce:

  1. XXX

Diagnostic data

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Extension version: 2025.2.0
VS Code version: Code 1.98.2 (Universal) (ddc367ed5c8936efe395cffeec279b04ffd7db78, 2025-03-12T13:32:45.399Z)
OS version: Darwin arm64 24.3.0
Modes:

  • Python version (& distribution if applicable, e.g. Anaconda): 3.13.2
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Pyenv
  • Value of the python.languageServer setting: Default
User Settings


languageServer: "Pylance"

Installed Extensions
Extension Name Extension Id Version
cmake twx 0.0.17
cmake-tools ms- 1.20.53
cpptools ms- 1.23.6
cpptools-extension-pack ms- 1.3.1
cpptools-themes ms- 2.0.0
datawrangler ms- 1.20.1
debugpy ms- 2025.4.1
gnuplot mam 1.0.5
isort ms- 2023.10.1
js-debug ms- 1.97.1
js-debug-companion ms- 1.1.3
jupyter ms- 2025.2.0
jupyter-keymap ms- 1.1.2
jupyter-renderers ms- 1.1.0
makefile-tools ms- 0.12.17
markdown-all-in-one yzh 3.6.3
markdown-preview-enhanced shd 0.8.18
material-theme zhu 3.19.0
mesonbuild mes 1.27.0
ninja sur 0.0.1
pdf tom 1.2.2
powershell ms- 2025.0.0
python ms- 2025.2.0
rainbow-csv mec 3.18.0
remote-containers ms- 0.401.0
rust-analyzer rus 0.3.2345
vscode-css-peek pra 4.4.3
vscode-docker ms- 1.29.4
vscode-github-actions git 0.27.1
vscode-html-css ecm 2.0.13
vscode-js-profile-table ms- 1.0.10
vscode-jupyter-cell-tags ms- 0.1.9
vscode-jupyter-slideshow ms- 0.1.6
vscode-language-pack-zh-hans MS- 1.98.2025031209
vscode-nand2tetris-hdl rob 0.1.1
vscode-pylance ms- 2025.3.2
vscode-xml red 0.28.0
System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
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
Load (avg) 3, 3, 3
Memory (System) 64.00GB (1.21GB free)
Process Argv --crash-reporter-id df70c873-806d-4434-a20c-c67603f06b4c
Screen Reader no
VM 0%
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vscod805cf:30301675
binariesv615:30325510
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
a9j8j154:30646983
962ge761:30959799
2e7ec940:31000449
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
iacca1:31171482
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
9064b325:31222308
copilot_t_ci:31222730
968h8231:31262364
jda6j935:31233686
pythoneinst12cf:31262606
bgcontrol:31262794
fh1c7952:31258891
6h6a5794:31261449
31787653:31262186

Metadata

Metadata

Assignees

Labels

area-terminalbugIssue identified by VS Code Team member as probable bugIssue identified by VS Code Team member as probable buginfo-neededIssue requires more information from posterIssue requires more information from poster

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.