Skip to content

bpython-curtsies crashes if no readline history on enter #432

Closed

Description

@thomasballinger

I think this is if you don't have a ~/.pythonhist file.

Activity

  1. thomasballinger commented on Jan 7, 2015

    @thomasballinger
    MemberAuthor
    Traceback (most recent call last):
      File "/usr/local/bin/bpython-curtsies", line 9, in <module>
        load_entry_point('bpython==0.13.1', 'console_scripts', 'bpython-curtsies')()
      File "/usr/local/lib/python2.7/site-packages/bpython/curtsies.py", line 60, in main
        mainloop(config, locals_, banner, interp, paste)
      File "/usr/local/lib/python2.7/site-packages/bpython/curtsies.py", line 92, in mainloop
        process_event(term.get_annotated_event(idle=find_iterator))
      File "/usr/local/lib/python2.7/site-packages/bpython/curtsies.py", line 76, in process_event
        repl.process_event(e)
      File "/usr/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 341, in process_event
        self.on_enter()
      File "/usr/local/lib/python2.7/site-packages/bpython/curtsiesfrontend/repl.py", line 374, in on_enter
        self.rl_history.last()
      File "/usr/local/lib/python2.7/site-packages/bpython/repl.py", line 241, in last
        return self.entries[0]
    IndexError: list index out of range
  2. thomasballinger commented on Jan 7, 2015

    @thomasballinger
    MemberAuthor

    would also be good to check if this happens with bpython as well

  3. sebastinas commented on Jan 7, 2015

    @sebastinas
    Contributor

    It does not happen with bpython.cli.

  4. added a commit that references this issue on Jan 9, 2015
    10992f0
  5. added a commit that references this issue on Jan 9, 2015
  6. sebastinas commented on Jan 9, 2015

    @sebastinas
    Contributor

    Now fixed.

  7. added a commit that references this issue on Jan 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions