From 1284ba39b709cc5d55f52befe0009995eedb818b 2017-09-22 19:12:42 From: Matthias Bussonnier Date: 2017-09-22 19:12:42 Subject: [PATCH] Fix jedi 0.11 – be optimistic. Instead of not trying Jedi completion if Jedi parsing of wether we are in a string fails assume that we should alway try jedi, and do not only if jedi manage to prove we are currently in a string. This should give some false positive (like triggering jedi in some unfinished strings), but no false negative – like for example with Jedi 0.11 which is just out. In the end we should do a proper fix; but I'd like to get that soon as otherwise Jedi is quasi deactivated when version 0.11 is installed (released a few days ago). --- diff --git a/IPython/core/completer.py b/IPython/core/completer.py index 5961369..fce43f0 100644 --- a/IPython/core/completer.py +++ b/IPython/core/completer.py @@ -1346,8 +1346,7 @@ class IPCompleter(Completer): interpreter = jedi.Interpreter( text, namespaces, column=cursor_column, line=cursor_line + 1) - - try_jedi = False + try_jedi = True try: # should we check the type of the node is Error ?