poetry shell modifies $TERM env variable within tmux
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
zsh 5.9 を使用して tmux 内で poetry shell を再現し、アクティベーションの前後で $TERM を比較します。poetry shell のエントリーポイントから開始し、報告されている emulate bash -c コマンドを含め、.venv/bin/activate がどのように呼び出されるかを調査します。アクティベーションによって $TERM が screen-256color から tmux-256color に変更されなくなり、その動作が回帰テストでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
- Poetry version: Poetry (version 1.4.2)
- Python version: 3.11.3
- OS version and name: macOS 13.3.1
- I am on the latest stable Poetry version, installed using a recommended method.
- I have searched the issues of this repo and believe that this is not a duplicate.
- I have consulted the FAQ and blog for any relevant entries or release notes.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvvoption) and have included the output below.
Issue
Hey, I'm an avid tmux user and love poetry so far, thanks for your work!
The issue I am experiencing is that when I run poetry shell my $TERM env variable is being changed from screen-256color to tmux-256color which breaks my terminal colors. Manually setting it back to screen-256color works fine. I'm running zsh 5.9 as my shell of choice.
EDIT:
I can see that emulate bash -c '. .../.venv/bin/activate' is being run in my shell when I run poetry shell. The command should be POSIX-compatible so I don't see a reason for it to be emulated. Maybe that causes some kind of issues but that's just speculation on my part.
- 主要言語
- Python
- スター
- 141
- フォーク
- 10
- 平均マージ
- 59分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
python-poetry/poetry-plugin-shell のほかの issue
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
python-poetry/poetry-plugin-shell#43 · コメント 1 件 · リアクション 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
python-poetry/poetry-plugin-shell#42 · コメント 4 件 · リアクション 15 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 38/100
python-poetry/poetry-plugin-shell#40 · コメント 4 件 · リアクション 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
python-poetry/poetry-plugin-shell#37 · コメント 3 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 25/100
python-poetry/poetry-plugin-shell#34 · コメント 1 件 ·
python-poetry/poetry-plugin-shell の issue をすべて見る
似ている issue
-
namespace operations
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
EclipseFdn/open-vsx.org#13573 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
collective/icalendar#1854 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
rancher/rancher-ai-agent#412 ·
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
TUDelftGeodesy/DePSI#134 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
HenriquesLab/rxiv-maker#335 ·