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

History not working on the top of the tree #36

Closed
lseshan opened this issue Nov 22, 2017 · 3 comments
Closed

History not working on the top of the tree #36

lseshan opened this issue Nov 22, 2017 · 3 comments

Comments

@lseshan
Copy link

lseshan commented Nov 22, 2017

steps: make testrepl

bar
Bar!
<<< Up arrow does not display the history>>

@untitaker
Copy link
Collaborator

It works just fine for me, please tell me exactly what you're doing and include a dump of pip freeze

@lseshan
Copy link
Author

lseshan commented Nov 23, 2017

Steps I tried (Inside virtualenv):

  1. Install click, click_repl using pip
  2. git clone https://github.com/click-contrib/click-repl
  3. Fix "completer" keyword in init.py:131
  4. sudo pip install -e ~/click_repl/click-repl/
  5. make testrepl
  6. type in command - "bar" or "foo". Now when I press up arrow, no response. With click installed from pip, I see correct behaviour.

Pip freeze output:
click==7.0.dev0
-e git+https://github.com/click-contrib/click-repl@90354daf9a5ec7bbaa4f90b31abc26fdc2a104b7#egg=click_repl
penshell==0.1
prompt-toolkit==1.0.15
six==1.11.0
wcwidth==0.1.7

Reason it is not working:

  1. Everytime a new history object is created in call to prompt in init.py:174 and hence history is not preserved.

git log
commit 90354da
Merge: 8edf7c6 f4de8d1
Author: Markus Unterwaditzer markus@unterwaditzer.net
Date: Sun Jul 2 16:19:13 2017 +0200

Merge pull request #32 from lwm/refactor+add+script

Small refactor and some other bits

commit f4de8d1
Author: Luke Murphy lukewm@riseup.net
Date: Sun Jul 2 00:52:37 2017 +0100

@untitaker
Copy link
Collaborator

untitaker commented Nov 27, 2017 via email

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

2 participants