Skip to content
Tcl Source Code History Of Ticket 1101678fffffffff
Login

History Of Ticket 1101678fffffffff

Artifacts Associated With Ticket 1101678fffffffff

  1. Ticket change [369e2b9273] (rid 107137) by vincentdarley on 2005-01-13 14:48:58:

    1. assignee initialized to: "dgp"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      The attached script creates a package 'testpkg' which
      provides two auto-loadable procs 'testpkg::one' and
      'testpkg::two'.
      
      If we execute 'testpkg::one', then do 'auto_reset' and
      then try to execute 'testpkg::two', the latter is no
      longer available -- the auto_index entry has been cleared.
      
      Or, for example:
      
      package require testpkg
      # Now 'testpkg::one' and 'testpkg::two' are both available
      # for auto-loading and execution
      auto_reset
      # Now both of those procs have been lost!
      
      
      
    4. foundin initialized to: "None"
    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: "39. Package Manager"
    10. title initialized to: "auto_reset conflicts with tclPkgSetup"
    11. type initialized to: "RFE"
  2. Add attachment "runtest.tcl" [753df81c1b] (rid 105358) by vincentdarley on 2005-01-13 21:48:58.

  3. Ticket change [efa6b929f0] (rid 109032) by vincentdarley on 2005-01-13 21:48:58:

    1. icomment:
      
      
      File Added - 115691: runtest.tcl
      
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  4. Ticket change [e123fcc36a] (rid 87398) by vincentdarley on 2005-01-13 21:52:25:

    1. foundin changed to: "obsolete: 8.4.9"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      Note that bug 1101670 means that after auto_loading of all
      of the procs provided by the given package, we will no
      longer see this bug -- i.e. bug 1101670 is masking some
      possible occurrences of this problem, at least for good
      packages that place their code inside a namespace.
      
      This is because 1101670 implies that procs in a namespace
      will not be deleted.
      
      A more general comment: the basic conflict seems to arise
      because auto_reset assumes all auto_index entries can be
      regenerated from tclIndex files, so it's ok to delete them,
      but auto_index entries created by tclPkgSetup cannot be
      recreated...
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  5. Ticket change [84a45f60dc] (rid 117593) by dgp on 2005-01-13 22:46:31:

    1. closedate changed to: "2005-01-13T15:46:31"
    2. closer changed to: "dgp"
    3. icomment:
      Logged In: YES 
      user_id=80530
      
      On this one, I'll agree that
      there's a misfeature, but
      there's no bug here.
      
      The real misfeature is
      [tclPkgSetup], and the
      [pkg_mkIndex -lazy] that
      creates it.  Don't use either.
      They're broken by design
      and not worth fixing.
      
      If you want auto-loading
      in your package, create
      the appropriate tclIndex
      file to make it happen.
      
      
      
      
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Wont Fix"
    7. status changed to: "Closed"
    8. username: "dgp"
  6. Ticket change [230c7348ca] (rid 130851) by vincentdarley on 2005-01-14 18:23:56:

    1. icomment:
      Logged In: YES 
      user_id=32170
      
      Can we at least document that pkg_mkIndex -lazy should not
      be used so others don't fall into this trap.
      
      Or, better yet, document what _should_ be used instead! 
      This is not a theoretical problem, this report comes from
      attempting to use the package tclAE which is part of
      Daniel's BI distribution for MacOS X.
        
      
      
    2. login: "vincentdarley"
    3. mimetype: "text/plain"
    4. username: "vincentdarley"
  7. Ticket change [dfd56e8084] (rid 115085) by vincentdarley on 2005-01-18 16:55:19:

    1. foundin changed to: "obsolete: 8.5a3"
    2. icomment:
      Logged In: YES 
      user_id=32170
      
      I've added a comment to '-lazy' to suggest it not be used.
      
      However, I still think there's a problem here, at least in
      the documentation, and probably in limitations of
      pkg_mkIndex.  The documentation says you should use
      'pkg_mkIndex', and goes to some lengths to explain simple vs
      complex packages, dependencies etc.
      
      However, the end result is simply that 'pkg_mkIndex' works
      well for a package composed of a single file (whether .dll
      or .tcl), but anything more than that, given that -lazy is
      buggy, requires one to manually created a tclIndex file and
      then manually create a pkgIndex.tcl file (which has to add
      $dir to the auto_path).
      
      Surely pkg_mkIndex should do that for me.  In fact, why not
      re-write the '-lazy' implementation to do just that:
      
      -lazy will:
      
      (i) build its list of source-able procs and load-able
      commands as per normal.
      (ii) Then it will write those things to a new tclIndex file
      in the given directory (this is a new step).
      (iii) Finally it will construct a pkgIndex.tcl file which
      adds the relevant $dir to the auto_path.
      
      In this way we would have something that actually _works_,
      has no problems with 'auto_reset', and has the properties of
      '-lazy' that we want (don't source every single script in a
      multi-script package unless we actually need them).
      
      
      
      
    3. login: "vincentdarley"
    4. mimetype: "text/plain"
    5. username: "vincentdarley"
  8. Ticket change [76a05aa80c] (rid 105618) by dgp on 2005-01-19 22:43:55:

    1. foundin changed to: "None"
    2. icomment:
      
      
      data_type - 360894
      
      Logged In: YES 
      user_id=80530
      
      interesting idea.  I'd need to think
      about it and look over the code
      implications, but I like it enough
      to make it a Feature Request.
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
    6. status changed to: "Open"
    7. subsystem changed to: "39. Package Manager"
    8. username: "dgp"
  9. Ticket change [71e791e682] (rid 100766) by dgp on 2005-01-26 00:59:38:

    1. title changed to:
      rewrite [pkg_mkIndex -lazy] to generate tclIndex file