You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Autocomplete of directory sometimes throws an exception and then semi-crashing #10585
Since upgrading to ipython 6, when I autocomplete for filenames in a directory I will sometimes (about once every 5 times) get an exception (see below) and ipython will semi-crash (the autocomplete and syntax highlighting stop working). While similar to other reported issues, this happens with and without spaces, and only occurs occasionally.
Exception in thread Thread-27
Traceback (most recent call last):
File "/Users/jmuniz/anaconda/lib/python3.5/threading.py", line 914, in _bootst
self.run()
File "/Users/jmuniz/anaconda/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/Users/jmuniz/anaconda/lib/python3.5/site-packages/prompt_toolkit/interf
completions = list(buffer.completer.get_completions(document, complete_event
File "/Users/jmuniz/anaconda/lib/python3.5/site-packages/IPython/terminal/ptut
yield from self._get_completions(body, offset, cursor_position, self.ipy_com
File "/Users/jmuniz/anaconda/lib/python3.5/site-packages/IPython/terminal/ptut
yield Completion(c.text, start_position=c.start - offset, display=_elide(dis
File "/Users/jmuniz/anaconda/lib/python3.5/site-packages/IPython/terminal/ptut
return '{}.{}\N{HORIZONTAL ELLIPSIS}{}.{}'.format(parts[0], parts[1][0], par
IndexError: string index out of range
Sorry for the delay in getting back to you on this, my package manager was a pain.
I'm on 6.1 now, and while the issue happens less frequently, it still occurs. I get the same crash but I also now get the following message before the trackback:
2017-06-21 01:30:28.906 Python[24862:11127349] !!! BUG: The current event queue and the main event queue are not the same. Events will not be handl
el
Sorry for the delay in getting back to you on this, my package manager was a pain.
I'm on 6.1 now, and while the issue happens less frequently, it still occurs. I get the same crash but I also now get the following message before the trackback:
2017-06-21 01:30:28.906 Python[24862:11127349] !!! BUG: The current event queue and the main event queue are not the same. Events will not be handl
el
Are you using open CV ? Because this seem like an openCV thing which is a different bug.
Activity
Carreau commentedon May 23, 2017
Oh, I think I fixed this in #10508 would you mind trying master ?
Carreau commentedon May 29, 2017
I'm going t assume #10508 dis actually fix all the things. and close that. Feel free to reopen.
themuniz commentedon Jun 21, 2017
Sorry for the delay in getting back to you on this, my package manager was a pain.
I'm on 6.1 now, and while the issue happens less frequently, it still occurs. I get the same crash but I also now get the following message before the trackback:
2017-06-21 01:30:28.906 Python[24862:11127349] !!! BUG: The current event queue and the main event queue are not the same. Events will not be handl
el
Please consider re-opening.
Carreau commentedon Jun 22, 2017
Are you using open CV ? Because this seem like an openCV thing which is a different bug.