Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot press Up in Python REPL under poetry shell #13

Open
4 tasks done
PythonTryHard opened this issue Oct 6, 2022 · 3 comments
Open
4 tasks done

Cannot press Up in Python REPL under poetry shell #13

PythonTryHard opened this issue Oct 6, 2022 · 3 comments

Comments

@PythonTryHard
Copy link

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
@dimbleby
Copy link

dimbleby commented Oct 6, 2022

also python-poetry/poetry#3760

@bmarroquin
Copy link

Confirmed this doesn't work. It also doesn't work with poetry run python.

@dimbleby, i believe this is different from #3760. The other issue doesn't mention the repl.

@dimbleby
Copy link

dimbleby commented Oct 7, 2022

I bet they're the same, but whatever.

Here's a similar issue in another project pew-org/pew#165 (comment) with some plausible-sounding discussion.

Anyway I expect it'll take someone who's willing to dive into this to fix it, and that's not going to be me.

@Secrus Secrus transferred this issue from python-poetry/poetry Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants