Closed theazureshadow closed 5 years ago
Opened an issue in prompt toolkit: https://github.com/jonathanslenders/python-prompt-toolkit/issues/632
The prompt toolkit issue is fixed in master. Now for the prompt
shortcut, they'll pop the history
argument out of kwargs
and pass it to PromptSession
. It hasn't made it into a release yet.
~Probably fixed by~ I fixed a bunch of prompt-toolkit related issues in https://github.com/click-contrib/click-repl/commit/62559405f01fb444819beccbb8cd5816b402e132, released in 0.1.5
We unpinned the prompt toolkit version, and it still worked. I'm closing this issue.
Just a heads up:
prompt_toolkit
just released a 2.0 version. Not sure if it'll break anything else, but it broke history for us. It's possible this actually represents a bug in prompt_toolkit code rather than click-repl, but I haven't dug into it. The docs still imply thathistory
should be a keyword argument.We pinned our version to 1.x for now.
Here's the stack: