Environment name missing brackets in newer Python versions in VSCode terminal

オープン
#503 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python, shell, vscode
領域
cli, tooling

調査の方向性

Reproduce both cases in the VSCode terminal using the listed pyenv install and pyenv virtualenv commands, comparing Python 3.13.2 with 3.12.7. Determine whether the missing brackets come from pyenv-virtualenv, the shell prompt, or VSCode, and confirm a reproducible workaround or fix.

索引モデルが issue の本文から書いたものです。

説明

need-feedback

It's a minor issue generally but it annoys me a little. After installing the latest version 3.13.2 using pyenv install 3.13.2 and pyenv virtualenv 3.13.2 ENV_NAME, the ENV_NAME in VSCode terminal does not have the brackets, as shown in this pic:

Image

However, after pyenv virtualenv uninstall ENV_NAME and pyenv virtualenv 3.12.7 ENV_NAME and restarting the VSCode in the same folder, typing anything in the VSCode terminal will make the prompt look like this, with brackets:

Image

Hence I am curious about it. Why, and how to overcome it?

主要言語
Shell
スター
6.7k
フォーク
433
平均マージ
1日 8時間
マージ済み PR(30日)
11

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pyenv/pyenv-virtualenv のほかの issue

pyenv/pyenv-virtualenv の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。