Bug 1701668 - Saving with Control-s crashes bpython, doesn't save
Summary: Saving with Control-s crashes bpython, doesn't save
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: bpython
Version: 29
Hardware: All
OS: Linux
unspecified
low
Target Milestone: ---
Assignee: Terje Røsten
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-20 17:15 UTC by Chris King-Parra
Modified: 2019-05-25 03:34 UTC (History)
2 users (show)

Fixed In Version: bpython-0.18-1.fc30 bpython-0.18-1.fc29
Clone Of:
Environment:
Last Closed: 2019-05-23 17:48:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Chris King-Parra 2019-04-20 17:15:23 UTC
Description of problem:

  When attempting to save a session with the keyboard
shortcut Control-s, bpython will crash.


Version-Release number of selected component (if applicable):

  0.3.0-3.fc29.noarch


How reproducible:

  Always.


Steps to Reproduce:

1. From bash, run 'bpython3'
2. Press Control-S
3. Type 'print("hello")'
3. Enter 'hi' as the output file name.
4. Press enter.
5. See the traceback.
6. Run 'cat hi' and observe that the saved file is empty.


Actual results:

Traceback (most recent call last):
  File "/usr/bin/bpython3", line 11, in <module>
    load_entry_point('bpython==0.17.1', 'console_scripts', 'bpython')()
  File "/usr/lib/python3.7/site-packages/bpython/curtsies.py", line 191, in main
    exit_value = repl.mainloop(True, paste)
  File "/usr/lib/python3.7/site-packages/bpython/curtsies.py", line 123, in mainloop
    self.process_event_and_paint(e)
  File "/usr/lib/python3.7/site-packages/bpython/curtsies.py", line 90, in process_event_and_paint
    self.process_event(e)
  File "/usr/lib/python3.7/site-packages/bpython/curtsiesfrontend/repl.py", line 603, in process_event
    return self.process_key_event(e)
  File "/usr/lib/python3.7/site-packages/bpython/curtsiesfrontend/repl.py", line 679, in process_key_event
    return self.status_bar.process_event(e)
  File "/usr/lib/python3.7/site-packages/bpython/curtsiesfrontend/interaction.py", line 99, in process_event
    self.request_context.switch(line)
  File "/usr/lib/python3.7/site-packages/bpython/repl.py", line 845, in write2file
    f.write(stdout_text)


Expected results: 

  A non-empty file named hi should be created in the current directory with
the contents of the repl session, and you should then return to the bpython 
prompt.


Additional info:

  The variable stdout_text is not defined.

Comment 1 Fedora Update System 2019-05-14 17:57:26 UTC
bpython-0.18-1.fc30 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-ad1a7e6bec

Comment 2 Fedora Update System 2019-05-14 17:57:31 UTC
bpython-0.18-1.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2019-2b0c0464f8

Comment 3 Fedora Update System 2019-05-15 00:53:18 UTC
bpython-0.18-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-ad1a7e6bec

Comment 4 Fedora Update System 2019-05-15 07:25:54 UTC
bpython-0.18-1.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-2b0c0464f8

Comment 5 Fedora Update System 2019-05-23 17:48:24 UTC
bpython-0.18-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2019-05-25 03:34:53 UTC
bpython-0.18-1.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.