[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2020-04-24 Thread Cajetan Rodrigues


Cajetan Rodrigues  added the comment:

Cannot reproduce on Ubuntu 19.10 with idle3.9 
(Python 3.9.0a5+ (heads/master:a25a04fea5, Apr 20 2020, 22:35:10))

--
nosy: +cajetan.rodrigues

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-14 Thread Tal Einat


Tal Einat  added the comment:

This also happens on Ubuntu 18.10, with a traceback similar to that reported on 
issue #37524:

Exception ignored in: 
Traceback (most recent call last):
  File "Lib/idlelib/run.py", line 488, in close
  File "Lib/idlelib/pyshell.py", line 1017, in close
  File "Lib/idlelib/editor.py", line 1019, in close
  File "Lib/idlelib/outwin.py", line 94, in maybesave
  File "Lib/idlelib/editor.py", line 952, in get_saved
AttributeError: 'NoneType' object has no attribute 'get_saved'

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-14 Thread Tal Einat


Tal Einat  added the comment:

Doesn't reproduce on Win10 with current master.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-12 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

I see the traceback I reported on #37524, whichever way I close.  In both 
cases, EditorWindow.close is called and we get an AttributeError because a file 
has become None. close() calls maybesave before _close, so the exception I see 
happens before _close is called.  It is possible I have seen this, before the 
#37524 errors started.  See latter for possible fix.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue37551] IDLE: Quitting with a new, unsaved editor window causes an exception

2019-07-10 Thread Tal Einat


New submission from Tal Einat :

Observed on macOS 10.14.5 with Python 3.8 from python.org, and with latest 
master branch.

Reproduction:
1. Open IDLE
2. "New File" (Cmd-Shift-n on macOS)
3. Quit using Cmd-q ("Quit Python" from the menu doesn't cause this!)

The exception traceback:
Exception in Tkinter callback
Traceback (most recent call last):
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/tkinter/__init__.py",
 line 1883, in __call__
return self.func(*args)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/multicall.py",
 line 176, in handler
r = l[i](event)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/filelist.py",
 line 54, in close_all_callback
reply = edit.close()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py",
 line 1021, in close
self._close()
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/pyshell.py",
 line 312, in _close
EditorWindow._close(self)
  File 
"/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/idlelib/editor.py",
 line 1025, in _close
if self.io.filename:
AttributeError: 'NoneType' object has no attribute 'filename'

--
assignee: terry.reedy
components: IDLE
messages: 347636
nosy: taleinat, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Quitting with a new, unsaved editor window causes an exception
type: behavior
versions: Python 3.7, Python 3.8, Python 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com