Re: [Activetcl] TclApp and Tablelist
by Andreas Kupries other posts by this author
May 1 2008 9:29AM messages near this date
view in the new Beta List Site
Re: [Activetcl] TclApp and Tablelist
|
Re: [Activetcl] TclApp and Tablelist
> > Note however that this is dependent on whether the package is
> > available through .tap file or teapot.
> >
> > To diagnose better I would have to know what paths are
> > declared for the TAP search, and what repositories are used.
>
> Here is my Teapot Resposirories:
> C:/Documents and Settings/mbahr/Teapot/repository
> C:/tap_help_repository
>
> And my TAP Search Paths:
> c:/tcl/lib/tcl8.4
> c:/tcl/lib
>
> I installed ActiveTcl 4.9.19 yesterday--uninstalled .18 then installed
> .19.
Given that you switched from AT 8.4.18 to AT 8.4.19 I compared the tklib.tap
of both distributions and found no differences beyond cosmetic stuff, i.e.
changes of version number for some packages, including tablelist.
What I noted however is that the tklib.tap file defines only
'tablelist::common', but not 'tablellist'. This explains both why
'tablelist' is not found and 'tablelist::common' is, also why
'tablelist::common' works. The latter: The tablelist::common TAP definition
contains all files in the tablelist directory, including those for the
'tablelist' package in all variants, and their package index file. With all
that wrapped the runtime is fine, finding all tablelist related packages
just fine.
Now, the question I am asking myself is how AT 8.4.18 worked for you with
'tablelist'. I am right now guessing that it did not. Did you make other AT
updates in the last few days, beyond the TDK update ?
We have the archives of the older releases still around and knowing which
versions of AT you used over time would help in narrowing down the search.
I am not thinking anymore that this is an issue with TDK or TclApp itself,
but only something with the TAP files provided by ActiveTcl.
As a workaround note that TAP files are plain text, as such they can be read
and modified with any text editor.
In AT 8.4.19 the tablelist definitions are around line 320, or look for
'tablelist::common'.
Add the following lines
Package {tablelist 4.9}
See tablelist::common
Platform *
Desc {...}
This defines 'tablelist' as an alias of 'tablelist::common', afterward
TclApp should find it, with your project unchanged, i.e. witohut the
tablellist to tablelist::common replacement.
Or you simply rename 'tablelist::common' to 'tabllelist' in that tap file.
As for how the definitions should have looked like in my opinion, see the
block before line 320, for module 'style'. You see one hidden definition
__style containing the relevant files, and then all actual (= user visible)
style packages aliased to it.
I am currently at a loss why this did not happen for tablelist. Well, not in
general, only in the details. This file is generated, and I believe that
changes to the package index file are tripping up the generator. This
however requires deeper investigation of the tklib codebase before I can
confirm/reject this hypothesis.
Got your next mail while writing this one ...
> Hi Andreas, prior to Tablelist being included in the ActiveTcl
> distribution I had to create my own .tap files. On another drive I
> found an older ActiveTcl install [dated 4/17/2006] and had Tablelist
> 4.5. The tap files were located in Tcl\lib\tap\ directory. Here is the
> contents
>
> format {TclDevKit Project File}
> fmtver 2.0
> fmttool {TclDevKit TclApp PackageDefinition} 3.2
>
> ## Saved at : Wed Oct 25 11:04:53 AM Eastern Daylight Time 2006
> ## By : mbahr@MBAHR
Ok, so you had a manually created tap file for the package and all related
ones, and with that it works, of course.
Seems that I will have to go through all older distributions until the given
date and check if the generated tap file for tklib was ever correct with
regard to tablelist.
--
Andreas Kupries <andreask@[...].com>
Developer @ http://www.ActiveState.com
Tel: +1 778-786-1122
_______________________________________________
ActiveTcl mailing list
ActiveTcl@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Michael Bahr
Andreas Kupries
Michael Bahr
Andreas Kupries
Michael Bahr
Flavio Salgueiro
Michael Bahr
Flavio Salgueiro
Michael Bahr
Andreas Kupries
Michael Bahr
Andreas Kupries
Michael Bahr
Andreas Kupries
Andreas Kupries
Jeff Hobbs
Michael Bahr
Andreas Kupries
|