classification
Title: IDLE hangs when passing invalid command line args (directory(ies) instead of file(s))
Type: behavior Stage: patch review
Components: IDLE, Library (Lib) Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, gpolo, serwy, terry.reedy
Priority: high Keywords: needs review, patch

Created on 2008-08-16 23:32 by gpolo, last changed 2011-11-29 20:53 by rhettinger.

Files
File name Uploaded Description Edit
fix_idle_startup_hang.diff gpolo, 2008-08-16 23:32 review
Messages (4)
msg71249 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2008-08-16 23:32
Passing a single directory as a command line argument can make IDLE hang.
To achieve this the user needs to configure IDLE to open an editor
window by default.

The attached patch discards filenames that failed to load, so in the end
it may open an empty editor window instead of hanging.
msg89022 - (view) Author: Guilherme Polo (gpolo) * (Python committer) Date: 2009-06-06 23:10
Idle has changed a bit since the initial message, so it no longer hangs
when it is configured to open an edit window by default, but now it
hangs when running it as: idle -e <somedirnamehere> (which the patch fixes).
msg110682 - (view) Author: Mark Lawrence (BreamoreBoy) Date: 2010-07-18 20:25
Please refer to msg89022.
msg148593 - (view) Author: Roger Serwy (serwy) * Date: 2011-11-29 18:59
I can confirm that using "idle -e <dir>" still causes a hang on Windows using 3.2.2 and on Ubuntu using 2.7.1 and 3.2

The given patch fixes the problem on those platforms.
History
Date User Action Args
2011-11-29 20:53:08rhettingersetpriority: normal -> high
2011-11-29 18:59:37serwysetnosy: + serwy
messages: + msg148593
2010-07-18 20:25:26BreamoreBoysetnosy: + BreamoreBoy, terry.reedy

messages: + msg110682
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6, Python 3.0
2009-08-13 03:29:28gpololinkissue4985 superseder
2009-08-13 03:28:40gpolosetsuperseder: Idle hangs when given a nonexistent filename. ->
2009-08-13 03:28:22gpolosetsuperseder: Idle hangs when given a nonexistent filename.
2009-06-06 23:10:29gpolosetmessages: + msg89022
2009-04-26 22:13:37ajaksu2setpriority: normal
type: behavior
components: + IDLE
stage: patch review
2008-08-21 20:28:59brett.cannonsetkeywords: + patch
2008-08-21 19:06:22gpolosetkeywords: + needs review, - patch
2008-08-16 23:32:25gpolocreate