question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tab-completion for multilevel broken on 7.2.0

See original GitHub issue

After 7.2.0, (enabling of jedi as default), tab completion is broken in multiple places. See https://github.com/ipython/ipython/issues/11541 and https://github.com/ipython/ipython/issues/11530 for other issues.

I found a new one that bites when using shell_plus in django and django-models…

Example:

7.1.1

In [1]: import os
In [2]: os.path.<tab>
            os.path.abspath ...

In [2]: User.
              User.DoesNotExist ...

In [2]: User.objects.<tab>
                 User.objects.aggregate ...

7.2.0

In [1]: import os

In [2]: User.<tab>
              User.DoesNotExist ...

In [2]: os.path.<tab>
            os.path.abspath ...

In [2]: User.objects.<tab> (nothing)

Putting this in ~/.ipython/profile_default/ipython_config.py makes 7.2.0 work

c = get_config()
c.IPCompleter.use_jedi = False

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
torbjocommented, Jul 1, 2019

Bump / more examples of broken behaviour:

import math
import numpy as np

math.<tab>      # nothing
np.<tab>        # nothing

This is really annoying! Thanks for the workaround; thought I had to downgrade.

2reactions
prjemiancommented, Apr 16, 2019

bump, the suggested workaround for now is

ipython --IPCompleter.use_jedi=False

a proper fix would be nicer

Read more comments on GitHub >

github_iconTop Results From Across the Web

autocomplete - Powershell 7.3.0 Tab completion not working
The problem is that when I press Tab it doesn't complete the command, instead it just starts listing current directories, i.e. here is...
Read more >
Using tab-completion in the shell - PowerShell | Microsoft Learn
This article explains the tab-completion feature of the shell, how to configure it, and how to extend its capabilities.
Read more >
Emacs + ipython tab completion not working ("no match")
Seems this was an issue in IPython 7.2.0, it has been fixed in 7.3 so you can just upgrade and it should work....
Read more >
FrankerFaceZ on Twitter: "We are aware that tab-completion ...
We are aware that tab-completion and other chat input features are currently broken on Twitch. This is the result of a bug in...
Read more >
Shell tab-completion for service command broken as root
This is disabled by default on Ubuntu. Read your /root/.bashrc : # enable programmable completion features (you don't need to enable # this,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found