[ python-Bugs-1337987 ] IDLE, F5 – wrong external file content. (on error!)

SourceForge.net noreply at sourceforge.net
Sun Nov 27 02:50:54 CET 2005


Bugs item #1337987, was opened at 2005-10-26 04:12
Message generated for change (Comment added) made by tyrell_rr
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1337987&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: None
Status: Closed
Resolution: Duplicate
Priority: 5
Submitted By: MvGulik (tyrell_rr)
Assigned to: Kurt B. Kaiser (kbk)
Summary: IDLE, F5 – wrong external file content. (on error!)

Initial Comment:
IDLE, F5 – wrong external file content on error.

using:
Python 2.3.5 (#62, Feb  8 2005, 16:23:02) [MSC v.1200
32 bit (Intel)] on win32
IDLE 1.0.5 , TK: 8.4

The basic problem is that when a external file is
reloaded, by using F5, and that file contains a error.
IDLE will tell about the error, and highlight the
error, but its still using the old file content in its
GUI window and not the newly reloaded file content.

when: (IDLE GUI)
- using F5 to reload and restart a external script.
- new and changed script file containing a error.

what:
- display is showing previous script content.
- error highlight is pointing at the wrong code. (bad!)

how:
first file: (create, load and execute)
---
a = 1
print a
---
change to:
---
a = 1
print a :
print a
---
use F5 to auto reload and execute.



Anything I'm doing wrong, or I can do locally to fix
this?.  just let me know.

ps: upgrade to 2.4.x is not really a option in my case.
(not yet at leased)

Cheers
M.v.Gulik

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

>Comment By: MvGulik (tyrell_rr)
Date: 2005-11-27 02:50

Message:
Logged In: YES 
user_id=779309

wow ... nevermind ... Bye bye.


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

Comment By: Kurt B. Kaiser (kbk)
Date: 2005-11-15 06:54

Message:
Logged In: YES 
user_id=149084

Duplicate of RFE 1175686.  Please read the comments
on that Tracker item.

IDLE is intended to edit its own code.  Apparently you are
using an external editor.  It's not a high priority for me
to support that, since IDLE has one-keystroke save, load
and run.  The guy who submitted the RFE never came back
with a use case; what's your use for this feature?

IDLE would have to detect that the file
had changed on disk.  Not difficult, just not done right
now.

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

Comment By: MvGulik (tyrell_rr)
Date: 2005-10-28 11:46

Message:
Logged In: YES 
user_id=779309

> Save with Control-S before pressing F5.
Don't think that a good idee.
This will save the initially loaded old file content inside
IDLE over the new file content (external edited -> not using
IDLE for editing)
Effectingly undoing all the changes done with the external
editor.
M.v.Gulik.

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

Comment By: Raymond Hettinger (rhettinger)
Date: 2005-10-26 04:45

Message:
Logged In: YES 
user_id=80475

Save with Control-S before pressing F5.

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

Comment By: MvGulik (tyrell_rr)
Date: 2005-10-26 04:37

Message:
Logged In: YES 
user_id=779309

huu, little update.
the error itself is not part of the real (code)problem.
( it is of course when its leading to misleading debug info )
but the display of the external file in just not updated
after using F5.
with or without a error being triggerd.
M.v.Gulik

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

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


More information about the Python-bugs-list mailing list