Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tm::path autoload failure

Closed / Fixed1806422fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-10-02 15:58:29
% info patch
8.5b1
% tcl::tm::path
invalid command name "tcl::tm::path"

Appears the command is missing from
the tclIndex file, so auto-loading
isn't working.

Also, there's no Category for
the Tcl Module support stuff
in the core.
andreas_kupriesplain2007-10-02 23:19:40
Logged In: YES 
user_id=75003
Originator: NO

I need more information.

If I run your commands using our Linux ActiveTcl 8.5 Beta 9 Build 282444 I do not see the problem. (I get a proper "wrong # args: should be "tcl::tm::path subcommand ?argument ...?"", and the auto_index is properly filled too).

Is that a self-built 8.5 core ?
ActiveTcl (build number?) ?
or ... ?
andreas_kupriesplain2007-10-02 23:21:48
Logged In: YES 
user_id=75003
Originator: NO

Side note: The command is defined by the file 'tm.tcl'.
andreas_kupriesplain2007-10-02 23:25:37
Logged In: YES 
user_id=75003
Originator: NO

Interesting. You are right. The command is not listed in the tclIndex. That makes it wierd how ActiveTcl is working ... Oh, right. We actually load a module during startup, to handle the teapot repositories. This sources tm.tcl, defines everything and I have tcl::tm::path ...

Ok, will fix asap.
andreas_kupriesplain2007-10-02 23:35:19
Logged In: YES 
user_id=75003
Originator: NO

Fix committed.
dgpplain2007-10-02 23:41:17
Logged In: YES 
user_id=80530
Originator: YES


Thanks for the fix.

A better long term fix might
be to revise tm.tcl so that
if tclIndex is generated by
[auto_mkIndex] the command
will be included in it.
Depends on the maintenance
plan for the tclIndex file.
Log in (anonymous is fine) to add a comment.