Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Cannot press Up in Python REPL under `poetry shell`

Đang mở
#13 3 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

Tái hiện vấn đề bằng Poetry 1.2.1 trên Windows với các tổ hợp Windows Terminal hoặc terminal tích hợp và pwsh hoặc cmd được liệt kê. Bắt đầu bằng cách lần theo entry point của poetry shell và cách xử lý môi trường terminal của nó; hoàn tất khi phím Up trong Python REPL gọi lại các lệnh trước đó bên trong poetry shell giống như bên ngoài.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Overview

  • Poetry version: 1.2.1.

  • Python version: 3.10.5 CPython.

  • OS version and name: Windows 10 21H2 Enterprise (build 19044.2006)

  • pyproject.toml: Irrelevant.

  • 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 (-vvv option) and have included the output below.

Issue

Steps to reproduce
  1. While not under poetry shell, open up the Python REPL. Run any command, and press Up to quick recall the command. The previous command(s) should be auto-filled.
  2. For reproducibility, create a new poetry project with poetry new. cd into the project, enter poetry shell.
  3. Open up the Python REPL, run any command, and press Up to quick recall the command.
Expected behaviour

Normal behaviour of Python REPL when pressing Up, demonstrated at step 1.

Actual behaviour

Pressing Up does nothing.

Notes

Known affected terminal-shell combo:

  • Windows Terminal Preview 1.16.2641.0 + pwsh 7.2.6
  • Windows Terminal Preview 1.16.2641.0 + cmd
  • Built-in terminal + pwsh 7.2.6
  • Built-in terminal + cmd
Ngôn ngữ chính
Python
Star
141
Fork
10
Merge trung bình
59 phút
Pull request đã merge (30 ngày)
3

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của python-poetry/poetry-plugin-shell

Tất cả issue của python-poetry/poetry-plugin-shell

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.