python-poetry / python-poetry/poetry-plugin-shell
Cannot press Up in Python REPL under `poetry shell`
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 (
-vvvoption) and have included the output below.
Issue
Steps to reproduce
- 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. - For reproducibility, create a new
poetryproject withpoetry new.cdinto the project, enterpoetry shell. - 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 +
pwsh7.2.6 - Windows Terminal Preview 1.16.2641.0 +
cmd - Built-in terminal +
pwsh7.2.6 - Built-in terminal +
cmd
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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