Skip to content
Tcl Source Code History Of Ticket 86ceb4e2b63cfcee
Login

History Of Ticket 86ceb4e2b63cfcee

Artifacts Associated With Ticket 86ceb4e2b63cfcee

  1. Ticket change [8996693b98] (rid 132852) by anonymous on 2013-07-15 05:47:53:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/html"
    4. comment initialized to:
      The <a href="https://www.tcl.tk/man/tcl8.6/TclCmd/tm.htm#M5">tm documentation</a> says that a module should be loaded from the module path by looking from the first in the list to the last.  However I find that the opposite is happening.  The problem can be demonstrated as so:<br />
      <br />
      If I do:<br />
      <pre>  <code>::tcl::tm::path list</code></pre>
      <br />
      I get:<br /> 
      <pre>  <code>/usr/lib/tcltk/tcl8/site-tcl /usr/lib/tcltk/tcl8/8.0
        /usr/lib/tcltk/tcl8/8.1 /usr/lib/tcltk/tcl8/8.2
        /usr/lib/tcltk/tcl8/8.3 /usr/lib/tcltk/tcl8/8.4
        /usr/lib/tcltk/tcl8/8.5 /usr/lib/tcltk/tcl8/8.6
        /usr/lib/tcl8/site-tcl /usr/lib/tcl8/8.0
        /usr/lib/tcl8/8.1 /usr/lib/tcl8/8.2
        /usr/lib/tcl8/8.3 /usr/lib/tcl8/8.4
        /usr/lib/tcl8/8.5 /usr/lib/tcl8/8.6
        /usr/share/tcltk/tcl8/site-tcl /usr/share/tcltk/tcl8/8.0
        /usr/share/tcltk/tcl8/8.1 /usr/share/tcltk/tcl8/8.2
        /usr/share/tcltk/tcl8/8.3 /usr/share/tcltk/tcl8/8.4
        /usr/share/tcltk/tcl8/8.5 /usr/share/tcltk/tcl8/8.6
        /usr/share/tcltk/tcl8.6/tcl8</code></pre>
      <br />
      <br />
      If I create a file called: <em>mymodtest-0.1.tm</em> with the following contents:<br />
      <pre>  <code>proc number {} {return 1}</code></pre>
      <br />
      I copy that file to the last location in the list above:<br />
      <pre>  <code>/usr/share/tcltk/tcl8.6/tcl8</code></pre>
      <br />
      Then I edit the file, replace the <code>1</code> with a <code>2</code>, and copy the file to the previous location in the list above:<br />
      <pre>  <code>/usr/share/tcltk/tcl8/8.6</code></pre>
      <br />
      Finally I edit the file again, replace the <code>2</code> with a <code>3</code>, and copy the file to the previous location in the list above:<br />
      <pre>  <code>/usr/share/tcltk/tcl8/8.5</code></pre>
      <br />
      When I run the following script:<br />
      <pre>  <code>package require mymodtest 
        number</code></pre>
      <br />
      I get a <code>1</code>; if I delete the file from the last location in the list, I get a <code>2</code>;  if I then delete the file from the previous location I get a <code>3</code>.
      
    5. foundin initialized to: "8.6"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "4066e024a5415dc3e2c65c2860b9e3a9ee7c14b7"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous"
    14. subsystem initialized to: "39. Package Manager"
    15. title initialized to:
      package require searching module path in wrong order
      
    16. type initialized to: "Bug"
  2. Ticket change [402b04bdfb] (rid 132853) by dgp on 2013-07-15 17:14:55:

    1. assignee changed to: "dgp"
    2. closedate changed to: "2456489.21870064"
    3. closer changed to: "dgp"
    4. icomment:
      The TM search is working as documented.
      
      Much more detail in the comp.lang.tcl followup.
      
      https://groups.google.com/d/msg/comp.lang.tcl/VXsAUOlPIXY/dXu7-Hq8dusJ
      
    5. login: "dgp"
    6. mimetype: "text/plain"
    7. resolution changed to: "Invalid"
    8. status changed to: "Closed"
  3. Ticket change [4327b0c631] (rid 132854) by dgp on 2013-07-15 18:04:32:

    1. closer changed to: "nobody"
    2. icomment:
      Re-opened.
      
      In that same comp.lang.tcl thread, Gustaf Neumann
      suggests a tweak that might improve this situation
      and related ones, yet still be faithful to the
      assumptions in the [package require] design.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. status changed to: "Open"
  4. Ticket change [4cb271ef2f] (rid 132857) by dgp on 2013-07-15 19:11:22:

    1. assignee changed to: "aku"
    2. icomment:
      See branch bug-86ceb4e2b6 for an idea
      how we might improve the experience of
      the OP while not revising the assumptions
      of [package require].
      
      Thanks to Gustaf Neumann for the idea.
      
    3. login: "dgp"
    4. mimetype: "text/plain"
  5. Ticket change [cc70e03922] (rid 133702) by jan.nijtmans on 2013-09-06 22:27:15:

    1. assignee changed to: "dgp"
    2. icomment: "This change looks good to me. Planned for 8.6.1?"
    3. login: "jan.nijtmans"
    4. mimetype: "text/plain"
    5. resolution changed to: "None"
  6. Ticket change [f66867304a] (rid 133724) by dgp on 2013-09-08 12:18:31:

    1. closedate changed to: "2456544.01286381"
    2. closer changed to: "dgp"
    3. icomment: "Change accepted for 8.5.15 and 8.6.1."
    4. login: "dgp"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"