gotcha / ipdb

Integration of IPython pdb
BSD 3-Clause "New" or "Revised" License
1.84k stars 147 forks source link

Readline woes #96

Open kierun opened 8 years ago

kierun commented 8 years ago

When I start ipdb in the shell, I get command line completion and the arrow keys work just fine.

However, when I run a script with import ipdb; ipdb.set_trace(), I get neither. All the arrow keys output is ^[[A^[[B^[[D^[[C.

Any idea why this happens?

brunobord commented 8 years ago

same here, including the fact that autocompletion using the <tab> key is not working anymore.

brunobord commented 8 years ago

FYI, I've downgraded to ipdb==0.9.4 and everything went fine again.

wodow commented 7 years ago

I just tried downgrading ipdb whilst using iPython 5.1.0 and the issue persists.

anentropic commented 7 years ago

same problem here... iPython 5.1.0 (where arrow and tab keys work fine) but ipdb is broken

have tried ipdb==0.7, ipdb==0.9.4 and latest ipdb==0.10.1

this is usually some problem with readline, I have also asked for help here https://github.com/ludwigschwardt/python-gnureadline/issues/49 with more details

In my case it stopped working not immediately after upgrade to macOS Sierra but after upgrading some packages. Have tried to revert things but cannot get back into working state yet

anentropic commented 7 years ago

Well I managed to get the readline parts (up/down arrow) working by rebuilding my virtualenv and using pip install --no-cache-dir to force packages to actually recompile against my rebuilt python and readline. something like that

Tab completion is still broken in ipdb

offero commented 7 years ago

Which package needs to be compiled and linked to which library?