Artifacts Associated With Ticket 1101670fffffffffffffffffffffffffffffffff
Ticket change [a09d2ea28e] (rid 96840) by vincentdarley on 2005-01-13 14:36:58:
- assignee initialized to: "dgp"
- cmimetype initialized to: "text/plain"
- comment initialized to:
The core proc auto_reset is documented as follows: # auto_reset -- # # Destroy all cached information for auto-loading and auto-execution, # so that the information gets recomputed the next time it's needed. # Also delete any procedures that are listed in the auto-load index # except those defined in this file. # # Arguments: # None. But it doesn't do that: proc auto_reset {} { variable ::tcl::auto_oldpath global auto_execs auto_index foreach p [info procs] { if {[info exists auto_index($p)]} { rename $p {} } } catch {unset auto_execs} catch {unset auto_index} catch {unset auto_oldpath} } 'info procs' only returns procedures in the global namespace. Presumably auto_reset should also delete procs in _all_ namespaces, if it is to agree with its documentation. - foundin initialized to: "obsolete: 8.4.9"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "vincentdarley"
- subsystem initialized to: "38. Init - Library - Autoload"
- title initialized to: "auto_reset disagrees with documentation"
- type initialized to: "Bug"
Ticket change [149c820994] (rid 124422) by dgp on 2005-01-13 22:42:52:
- icomment:
Logged In: YES user_id=80530 thanks for the report. Sure looks like [auto_reset] never got an update to deal with the arrival of [namespace]. While I consider a fix for this, what do you think about expanding to [info commands] instead of [info procs] ? Just because a command is auto-loaded doesn't mean it's a [proc]. The auto-load script could call [load].
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [f79afd9395] (rid 91401) by vincentdarley on 2005-01-14 18:27:53:
- icomment:
Logged In: YES user_id=32170 At first sight I would say, yes, that 'info commands' would be better, but then the problem is this would result in a piece of code being loaded twice, wouldn't it? mycmd ; # causes 'auto_load mycmd' which causes 'load foo.dll' auto_reset mycmd ; # causes 'auto_load mycmd' which causes 'load foo.dll' Won't that cause trouble?
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [e99afd3451] (rid 104842) by dgp on 2005-01-15 03:21:39:
- icomment:
Logged In: YES user_id=80530 no trouble. [load] remembers what files it has dlopen()'d (*) and will not do so twice. A second [load] on the same file will only lead to another Foo_Init() call. (*) [info loaded] will even tell you what they are.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [49a7d70146] (rid 100089) by vincentdarley on 2005-01-17 19:51:47:
- icomment:
Logged In: YES user_id=32170 Well then [info commands] seems the way to go. Vince. p.s. another buglet is the clause "...except those defined in this file." above, which is untrue. 'auto_reset' does in fact delete itself, for example.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [8a17a5921f] (rid 127334) by dgp on 2005-01-25 01:51:12:
- icomment:
Logged In: YES user_id=80530 Is there a goof in this submission? The bug is reported on Tcl 8.4.9, but the code cited comes from the Tcl HEAD of development. Is the submitter looking for fixes just on the HEAD, or for 8.4.10 as well?
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b170ec4970] (rid 98143) by vincentdarley on 2005-01-25 02:04:43:
- icomment:
Logged In: YES user_id=32170 The basic bug is in both 8.4 and 8.5, so I would assume a fix would apply to both (I'm not sure of the purpose of the differences between 8.4 and 8.5, but they definitely disagree with the comments in auto.tcl in 8.5). However, I'm most interested in seeing fixes in 8.5.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [d81cb1da0d] (rid 107382) by dgp on 2005-01-25 03:58:29:
- icomment:
Logged In: YES user_id=80530 please review this patch for Tcl 8.5.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Add attachment "1101670.patch" [77baf21052] (rid 89822) by dgp on 2005-01-25 03:58:31.
Ticket change [86c7d21b06] (rid 131578) by dgp on 2005-01-25 03:58:31:
- icomment:
File Added - 116992: 1101670.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [ff7a0f3451] (rid 108760) by vincentdarley on 2005-01-25 18:01:57:
- icomment:
Logged In: YES user_id=32170 Ah, yes, that's a very nice way of doing things. It does appear to work for me. I suppose the [info library] bit is to ensure that the auto_* procs can be reloaded in the future?
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [d11d23a636] (rid 113294) by dgp on 2005-01-26 00:05:54:
- icomment:
Logged In: YES user_id=80530 revised patch with added safety committed to HEAD.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [585d2056d9] (rid 117789) by dgp on 2005-01-26 00:58:19:
- closedate changed to: "2005-01-25T17:58:19"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 commited slightly different fix for 8.4.10 that treads a bit lighter on compatibility.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
Ticket change [646717a798] (rid 92762) by skherndon on 2005-06-24 04:18:13:
- icomment:
Logged In: YES user_id=281759 I've run into a problem after picking up this change related to Itcl. Once auto_reset is called, auto_mkindex no longer indexes itcl::class and other itcl procedures. To illustrate, I placed a puts statement in itcl.tcl and in auto_mkindex_parser::command. (bin) 49 % package require Itcl itcl.tcl sourced auto_mkindex_parser::command proc auto_mkindex_parser::command namespace auto_mkindex_parser::command itcl::class auto_mkindex_parser::command itcl::body auto_mkindex_parser::command itcl::configbody auto_mkindex_parser::command itcl::ensemble auto_mkindex_parser::command public auto_mkindex_parser::command protected auto_mkindex_parser::command private 3.3 (bin) 49 % auto_reset (bin) 50 % package require Itcl 3.3 (bin) 51 % at this point, if I run auto_mkindex on a directory with itcl classes in it, they will not be added to the tclIndex. There is no mechanism in place to force Itcl to handle auto_reset.
- login: "skherndon"
- mimetype: "text/plain"
- username: "skherndon"
- icomment:
Ticket change [7fbfb9000c] (rid 97611) by dgp on 2005-06-24 08:37:38:
- icomment:
Logged In: YES user_id=80530 It's looking like [auto_mkindex] is dependent on this bug. I'll try to develop a proper fix for this, but if that doesn't come together, I'll at least add [auto_mkindex] (and support) to the list of special case commands in [auto_reset].
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- resolution changed to: "Remind"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [896736faa1] (rid 132017) by dgp on 2005-06-24 20:37:06:
- icomment:
Logged In: YES user_id=80530 Please test whether the attached auto.test solves the issue.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [daeede8da9] (rid 107872) by dgp on 2005-06-24 20:37:07:
- icomment:
File Added - 139645: auto.patch
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [b442ab1059] (rid 124996) by skherndon on 2005-06-24 21:46:21:
- icomment:
Logged In: YES user_id=281759 The patch worked.
- login: "skherndon"
- mimetype: "text/plain"
- username: "skherndon"
- icomment:
Ticket change [2df5792fe0] (rid 119143) by dgp on 2005-06-24 22:03:38:
- closedate changed to: "2005-06-24T15:03:38"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 fix committed for 8.4.11 and HEAD
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
Ticket change [c60db3c217] (rid 121700) by dgp on 2005-06-25 05:56:20:
- icomment:
Logged In: YES user_id=80530 um, no. that patch appears to totally break [auto_mkIndex]. Don't understand why skherndon thought it worked. re-opened.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Remind"
- status changed to: "Open"
- username: "dgp"
- icomment:
Ticket change [1052142071] (rid 94956) by dgp on 2005-06-25 06:03:57:
- icomment:
Logged In: YES user_id=80530 ok, patch just misplaced a check, and perhaps tbcload was needed to tweak the brokennness.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [62f0530084] (rid 92490) by dgp on 2005-06-25 06:26:50:
- closedate changed to: "2005-06-24T23:26:50"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 bogus patch deleted; corrected patch committed for 8.4.11 and HEAD.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"
Ticket change [b027e607dc] (rid 97930) by dgp on 2005-06-25 06:26:51:
- icomment:
File Deleted - 139645:
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [1a17cdc654] (rid 122916) by dgp on 2005-06-28 00:30:35:
- status changed to: "Open"
Ticket change [ec480efb44] (rid 103686) by dgp on 2005-06-28 00:30:36:
- icomment:
Logged In: YES user_id=80530 re-opening after more reports of trouble. The issue is that this bug fix for the first time causes [auto_reset] to force the re-loading of commands in non-global namespaces. This means for the first time, auto-loading is causing some files to be [source]d twice that for many years have only been [source]d once. There are an unknown number of (arguably buggy) files out there that do not tolerate being [source]d more than once. It appears some of these files are part of Tk's script library. (!) Given that, it's looking more and more like this change -- though it is a bug fix -- is sufficiently disruptive that it ought only happen in 8.5 development, and not in a stable patch release. Any contrary comments, Vince?
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Remind"
- username: "dgp"
- icomment:
Ticket change [f9b78f25dd] (rid 91746) by vincentdarley on 2005-06-28 00:37:09:
- icomment:
Logged In: YES user_id=32170 No comments to the contrary - we certainly want Tcl 8.4.10+ to be stable and not introduce new subtle problems.
- login: "vincentdarley"
- mimetype: "text/plain"
- username: "vincentdarley"
- icomment:
Ticket change [a70e46b641] (rid 98718) by dgp on 2005-06-28 01:13:03:
- closedate changed to: "2005-06-27T18:13:03"
- closer changed to: "dgp"
- icomment:
Logged In: YES user_id=80530 done.
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "dgp"