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

Autocomplete fails when using iPython 5.0.0 #22

Closed
wodow opened this issue Aug 10, 2016 · 2 comments
Closed

Autocomplete fails when using iPython 5.0.0 #22

wodow opened this issue Aug 10, 2016 · 2 comments

Comments

@wodow
Copy link

wodow commented Aug 10, 2016

Example:

$ python
Python 2.7.11 (default, Dec 21 2015, 23:25:12)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipdb; ipdb.set_trace()
--Return--
None
> <stdin>(1)<module>()

ipdb> import string
ipdb> string.

Pressing the tab key at this point brings up iPython 5's new autocomplete pop-up.

In contrast, raising in an exception in a nose test run with --ipdb gets the same prompt, but does not autocomplete when tab is pressed.

@wodow wodow changed the title Autocomplete fails when using ipython 5.0.0 Autocomplete fails when using iPython 5.0.0 Aug 10, 2016
@flavioamieiro
Copy link
Owner

I'm sorry for the huge delay on this. It has been hard for me to be able to sit down and work on this lately. I did give it a try quickly a while ago, but IPython's API changed quite a bit.

If someone is kind enough to provide a patch for this, I'll obviously merge it. Otherwise, please just wait a bit more and I'll try to fix it once and for all (probably along with #24).

Again, I'm sorry!

@flavioamieiro
Copy link
Owner

I've merged #25 , which adds support for IPython>=5. There still seems to be an issue with the way nose captures stdout by default. Apparently, IPython's terminal does not handle this well. As far as I can tell, there is no way of making this work with stdout capture active.

The way to use autocomplete is to also use nose's --nocapture option. I've added a warning about this on bf0d44b.

I've also uploaded version 1.5 to pypi.

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