Skip to content
Tcl Source Code History Of Ticket 1101670
Login

History Of Ticket 1101670

Artifacts Associated With Ticket 1101670

  1. Ticket change [a09d2ea28e] (rid 96840) by vincentdarley on 2005-01-13 14:36:58:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. 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.
      
      
    4. foundin initialized to: "obsolete: 8.4.9"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. status initialized to: "Open"
    8. submitter initialized to: "vincentdarley"
    9. subsystem initialized to: "38. Init - Library - Autoload"
    10. title initialized to: "auto_reset disagrees with documentation"
    11. type initialized to: "Bug"
  2. Ticket change [149c820994] (rid 124422) by dgp on 2005-01-13 22:42:52:

    1. 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].
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  3. Ticket change [f79afd9395] (rid 91401) by vincentdarley on 2005-01-14 18:27:53:

    1. 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?
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  4. Ticket change [e99afd3451] (rid 104842) by dgp on 2005-01-15 03:21:39:

    1. 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.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [49a7d70146] (rid 100089) by vincentdarley on 2005-01-17 19:51:47:

    1. 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.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  6. Ticket change [8a17a5921f] (rid 127334) by dgp on 2005-01-25 01:51:12:

    1. 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?
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [b170ec4970] (rid 98143) by vincentdarley on 2005-01-25 02:04:43:

    1. 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.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  8. Ticket change [d81cb1da0d] (rid 107382) by dgp on 2005-01-25 03:58:29:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      please review this patch
      for Tcl 8.5.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Add attachment "1101670.patch" [77baf21052] (rid 89822) by dgp on 2005-01-25 03:58:31.

  10. Ticket change [86c7d21b06] (rid 131578) by dgp on 2005-01-25 03:58:31:

    1. icomment:
      
      
      File Added - 116992: 1101670.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  11. Ticket change [ff7a0f3451] (rid 108760) by vincentdarley on 2005-01-25 18:01:57:

    1. 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?
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  12. Ticket change [d11d23a636] (rid 113294) by dgp on 2005-01-26 00:05:54:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      revised patch with added safety
      committed to HEAD.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  13. Ticket change [585d2056d9] (rid 117789) by dgp on 2005-01-26 00:58:19:

    1. closedate changed to: "2005-01-25T17:58:19"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      commited slightly different
      fix for 8.4.10 that treads a
      bit lighter on compatibility.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  14. Ticket change [646717a798] (rid 92762) by skherndon on 2005-06-24 04:18:13:

    1. 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.
      
      
    2. login: "skherndon"
    3. mimetype: "text/plain"
    4. username: "skherndon"
  15. Ticket change [7fbfb9000c] (rid 97611) by dgp on 2005-06-24 08:37:38:

    1. 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].
      
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. resolution changed to: "Remind"
    6. status changed to: "Open"
    7. username: "dgp"
  16. Ticket change [896736faa1] (rid 132017) by dgp on 2005-06-24 20:37:06:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      
      Please test whether the attached auto.test
      solves the issue.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  17. Ticket change [daeede8da9] (rid 107872) by dgp on 2005-06-24 20:37:07:

    1. icomment:
      
      
      File Added - 139645: auto.patch
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  18. Ticket change [b442ab1059] (rid 124996) by skherndon on 2005-06-24 21:46:21:

    1. icomment:
      Logged In: YES 
      user_id=281759
      
      The patch worked.
      
      
    2. login: "skherndon"
    3. mimetype: "text/plain"
    4. username: "skherndon"
  19. Ticket change [2df5792fe0] (rid 119143) by dgp on 2005-06-24 22:03:38:

    1. closedate changed to: "2005-06-24T15:03:38"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      fix committed for 8.4.11 and HEAD
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  20. Ticket change [c60db3c217] (rid 121700) by dgp on 2005-06-25 05:56:20:

    1. 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.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "Remind"
    5. status changed to: "Open"
    6. username: "dgp"
  21. Ticket change [1052142071] (rid 94956) by dgp on 2005-06-25 06:03:57:

    1. icomment:
      Logged In: YES 
      user_id=80530
      
      ok, patch just misplaced a check,
      and perhaps tbcload was needed
      to tweak the brokennness.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  22. Ticket change [62f0530084] (rid 92490) by dgp on 2005-06-25 06:26:50:

    1. closedate changed to: "2005-06-24T23:26:50"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      bogus patch deleted;
      
      corrected patch committed for
      8.4.11 and HEAD.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"
  23. Ticket change [b027e607dc] (rid 97930) by dgp on 2005-06-25 06:26:51:

    1. icomment:
      
      
      File Deleted - 139645: 
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  24. Ticket change [1a17cdc654] (rid 122916) by dgp on 2005-06-28 00:30:35:

    1. status changed to: "Open"
  25. Ticket change [ec480efb44] (rid 103686) by dgp on 2005-06-28 00:30:36:

    1. 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?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. resolution changed to: "Remind"
    5. username: "dgp"
  26. Ticket change [f9b78f25dd] (rid 91746) by vincentdarley on 2005-06-28 00:37:09:

    1. 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.
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  27. Ticket change [a70e46b641] (rid 98718) by dgp on 2005-06-28 01:13:03:

    1. closedate changed to: "2005-06-27T18:13:03"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      done.
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "dgp"