Artifacts Associated With Ticket 86ceb4e2b6
Ticket change [8996693b98] (rid 132852) by anonymous on 2013-07-15 05:47:53:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/html"
- 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>. - foundin initialized to: "8.6"
- is_private initialized to: "0"
- login: "anonymous"
- priority initialized to: "5 Medium"
- private_contact initialized to: "4066e024a5415dc3e2c65c2860b9e3a9ee7c14b7"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "anonymous"
- subsystem initialized to: "39. Package Manager"
- title initialized to:
package require searching module path in wrong order
- type initialized to: "Bug"
Ticket change [402b04bdfb] (rid 132853) by dgp on 2013-07-15 17:14:55:
- assignee changed to: "dgp"
- closedate changed to: "2456489.21870064"
- closer changed to: "dgp"
- 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
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Closed"
Ticket change [4327b0c631] (rid 132854) by dgp on 2013-07-15 18:04:32:
- closer changed to: "nobody"
- 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.
- login: "dgp"
- mimetype: "text/plain"
- status changed to: "Open"
Ticket change [4cb271ef2f] (rid 132857) by dgp on 2013-07-15 19:11:22:
- assignee changed to: "aku"
- 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.
- login: "dgp"
- mimetype: "text/plain"
Ticket change [cc70e03922] (rid 133702) by jan.nijtmans on 2013-09-06 22:27:15:
- assignee changed to: "dgp"
- icomment: "This change looks good to me. Planned for 8.6.1?"
- login: "jan.nijtmans"
- mimetype: "text/plain"
- resolution changed to: "None"
Ticket change [f66867304a] (rid 133724) by dgp on 2013-09-08 12:18:31:
- closedate changed to: "2456544.01286381"
- closer changed to: "dgp"
- icomment: "Change accepted for 8.5.15 and 8.6.1."
- login: "dgp"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"