python-poetry / python-poetry/poetry-plugin-shell

Cannot press Up in Python REPL under `poetry shell`

Open
#13 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
141
Forks
10
Avg merge
59m
Merged PRs (30d)
3

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue using Poetry 1.2.1 on Windows with the listed Windows Terminal or built-in terminal and pwsh or cmd combinations. Start by tracing the poetry shell entry point and its terminal environment handling; done means the Python REPL's Up key recalls previous commands inside poetry shell as it does outside it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.