python-poetry / poetry-plugin-shell

MIT License
0 stars 1 forks source link

Cannot press Up in Python REPL under `poetry shell` #13

Open PythonTryHard opened 2 years ago

PythonTryHard commented 2 years ago

Overview

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:

dimbleby commented 2 years ago

also https://github.com/python-poetry/poetry/discussions/3760

bmarroquin commented 2 years ago

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 commented 2 years ago

I bet they're the same, but whatever.

Here's a similar issue in another project https://github.com/berdario/pew/issues/165#issuecomment-339874950 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.