Skip to content

Interactive help() crashes bpython-curtsies #319

@Widdershin

Description

@Widdershin

The interactive help, brought up with help(), crashes after printing the welcome message.

Traceback:

Traceback (most recent call last):
File "/home/nick/.virtualenvs/bpython/bin/bpython-curtsies", line 9, in <module>
load_entry_point('bpython==mercurial', 'console_scripts', 'bpython-curtsies')()
File "/home/nick/.virtualenvs/bpython/local/lib/python2.7/site-packages/bpython/curtsies.py", line 63, in main
mainloop(config, locals_, banner, interp, paste, interactive=(not exec_args))
File "/home/nick/.virtualenvs/bpython/local/lib/python2.7/site-packages/bpython/curtsies.py", line 119, in mainloop
process_event(e)
File "/home/nick/.virtualenvs/bpython/local/lib/python2.7/site-packages/bpython/curtsies.py", line 107, in process_event
array, cursor_pos = repl.paint()
File "/home/nick/.virtualenvs/bpython/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 826, in paint
cursor_row, cursor_column = divmod(len(self.current_stdouterr_line_without_suggestion) + self.stdin.cursor_offset, width)
AttributeError: 'Repl' object has no attribute 'current_stdouterr_line_without_suggestion'

Full session:
https://gist.github.com/Widdershin/b6a64d06e6dca11dabaf

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions