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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/terryjreedy'closed_at=<Date2014-06-10.06:54:56.212>created_at=<Date2014-06-08.19:57:39.178>labels= ['expert-IDLE', 'type-bug']
title='Idle 3.4.1-: closing Find in Files while in progress closes Idle'updated_at=<Date2019-03-23.20:08:09.589>user='https://github.com/terryjreedy'
Reproducer: On Windows, Open Idle and editor. In editor grep (alt-f3), for instance, 'print' in /Lib/*.py. While hits are flashing by, close the output window with [x]
2.7.6 or .7: Output window closes, Idle continues as desired.
3.3.5 or 3.4.1: All Idle windows - shell, editor, output
3.4.1+, 3.5.0a, debug builds run from console interpreter:
Output window closes, Idle continues, as desired.
console window displays exception ending with
File "F:\Python\dev\5\py35\lib\idlelib\GrepDialog.py", line 90, in grep_it
(fn, lineno, line))
File "F:\Python\dev\5\py35\lib\idlelib\OutputWindow.py", line 40, in write
self.text.insert(mark, s, tags)
AttributeError: 'NoneType' object has no attribute 'insert'
The specific fix is to wrap the text insert with try: except: break. The immediate mystery is why 2.7 did not shutdown with nowhere to print the traceback.
I added try: except: and tested on installed 3.4.1, which previously failed. There is no way that I know of to start repository Idle without a console to print a traceback to. I added a missing import, removed an incorrect comment, added others, and changed 'print x' in 2.7 to 'print(x)' to reduce differences between versions for future patches.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: