Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

unknown namespace in import pattern "::msgcat::mcload" -- pkg_mkIndex

184 views
Skip to first unread message

wren...@gmail.com

unread,
Feb 22, 2018, 9:46:21 AM2/22/18
to
When I try to generate pkgIndex.tcl file for my packages, I got the following issue message, what does it mean?

tcl>pkg_mkIndex -verbose . *.tcl
successful sourcing of PBatch.tcl
packages provided were {PBatch 1.0}
processed PBatch.tcl
warning: error while sourcing Plib.tcl: unknown namespace in import pattern "::msgcat::mcload"

Don Porter

unread,
Feb 22, 2018, 1:13:54 PM2/22/18
to
It means that [source Plib.tcl] leads to evaluation of the command:

namespace import ::msgcat::mcload

and that when the indexer runs, this command fails because the namespace
::msgcat does not exist.

Does a [source Plib.tcl] work in a normal context?

Generally speaking, pkg_mkIndex cannot cope with anything non-trivial,
or anything where side effects are important. Since Tcl packages are
fully defined by side effects, this means there's a great deal that
pkg_mkIndex just cannot do correctly.

It is unlikely that beating on and propping up [pkg_mkIndex] until it
produces a working pkgIndex.tcl file will be easier than just creating
the pkgIndex.tcl file for yourself. I recommend that approach.

--
| Don Porter Applied and Computational Mathematics Division |
| donald...@nist.gov Information Technology Laboratory |
| http://math.nist.gov/~DPorter/ NIST |
|______________________________________________________________________|

wren...@gmail.com

unread,
Feb 23, 2018, 3:44:33 AM2/23/18
to
Greatly appreciated.

~Tao
0 new messages