[Python-bugs-list] [ python-Bugs-778400 ] IDLE hangs when selecting "Edit with IDLE" from explorer

SourceForge.net noreply@sourceforge.net
Tue, 29 Jul 2003 10:25:21 -0700


Bugs item #778400, was opened at 2003-07-27 05:32
Message generated for change (Comment added) made by tim_one
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=778400&group_id=5470

Category: IDLE
Group: Python 2.3
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Miki Tebeka (tebeka)
Assigned to: Tim Peters (tim_one)
Summary: IDLE hangs when selecting "Edit with IDLE" from explorer

Initial Comment:
IDLE editor window hangs when right clicking a file and
selecting "Edit with IDLE"

Steps to reproduce:
o Open IDLE
o Open explorer
o Right click on a .py file
o Choose "Edit with IDLE"

A new IDLE edit window opens but it is not responding.
The original (shell) IDLE window works fine.

If you do the above without opening an IDLE shell it
works fine.

My system is win2k on IBM T30 (LapTop).

----------------------------------------------------------------------

>Comment By: Tim Peters (tim_one)
Date: 2003-07-29 13:25

Message:
Logged In: YES 
user_id=31435

Yup, this just snuck in for 2.3 final.  Thanks!

Misc/NEWS; new revision: 1.830
PCbuild/python20.wse; new revision: 1.133

----------------------------------------------------------------------

Comment By: Kurt B. Kaiser (kbk)
Date: 2003-07-29 01:10

Message:
Logged In: YES 
user_id=149084

Sorry, I should have used the -n switch the first time.
Hopefully this can be 2.3.

Currently on Windows IDLE can partially start multiple
instances under conditions still not fully understood.  The
comment by tebeka is interesting but not a universal
fix, I believe.

If IDLE is configured to open a shell (the default) it will
exhibit this behaviour.  If configured to open an edit
window at startup, it won't.  

The -n switch causes IDLE to not use the subprocess,
so it acts like the old IDLE and mutliple copies are not
a problem.

I'm increasingly inclined to think that the -e switch should
act like an "editor window on startup" configuration, since
opening multiple shells is ugly when configured to "open
shell on startup."

Eventually it will be possible to run multiple IDLE instances,
each with its own subprocess, but that's 2.4.

----------------------------------------------------------------------

Comment By: Miki Tebeka (tebeka)
Date: 2003-07-28 03:10

Message:
Logged In: YES 
user_id=358087

When I change idle.pyw from

from idlelib.PyShell import main

to

import idlelib.PyShell
idlelib.PyShell.main()

I get a responsive IDLE edit window + a new shell window.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2003-07-27 12:53

Message:
Logged In: YES 
user_id=31435

Assigned to Kurt.  On Win2K the steps above don't create a 
problem for me, but I get a frozen window if I repeat the last 
two steps.  The whole failing sequence for me on a Win2K 
desktop box:

o Open IDLE
o Right click on a .py file
o Choose "Edit with IDLE"
o Right click on another .py file
o Choose "Edit with IDLE"

On Win98SE, the first "Edit with IDLE" works fine.  The 
second "Edit with IDLE" opens a new shell window but not a 
window for the selected .py file.  Third and subsequent "Edit 
with IDLE" steps have no visible effect (neither a new shell 
nor a new edit window open).

Something is left in a hosed state then:  if I close all the open 
IDLE windows, and try "Edit with IDLE" again, nothing visible 
happens.  The Win98SE task manager (Ctrl+Alt+Del) doesn't 
show any Python processes running at that point, and neither 
does WinTop.  It's still possible to start another IDLE, though.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=778400&group_id=5470