Skip to content

reproducible trackeback with completion #42

@ikanobori

Description

@ikanobori

Steps to reproduce it:

  1. Make sure lxml is installed

  2. Open bpython (mine is changeset 238:fbe8addaf66f)

  3. Type this:

    from lxml.etree import XMLParser
    help(XMLP

  4. Now type the tab key for completing, bpython adds "arser("

  5. Type tab again and bpython crashes with the following traceback:

    Traceback (most recent call last):
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 2161, in main
    o = curses.wrapper(main_curses, exec_args, options.interactive)
    File "/usr/lib/python2.6/curses/wrapper.py", line 44, in wrapper
    return func(stdscr, _args, *_kwds)
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 2103, in main_curses
    repl.repl()
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 1199, in repl
    inp = self.get_line()
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 1755, in get_line
    if self.p_key() is None:
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 1535, in p_key
    return self.tab()
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 1564, in tab
    self.complete(tab=True)
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 668, in complete
    self.list_win_visible = self._complete(tab)
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 743, in _complete
    self.show_list(self.matches, self.argspec)
    File "/usr/lib/python2.6/site-packages/bpython/cli.py", line 834, in show_list
    self.list_win.mvwin(y + 1, 0)
    error: mvwin() returned ERR


Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions