Google 网上论坛不再支持新的 Usenet 帖子或订阅项。历史内容仍可供查看。

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

已查看 184 次
跳至第一个未读帖子

wren...@gmail.com

未读,
2018年2月22日 09:46:212018/2/22
收件人
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

未读,
2018年2月22日 13:13:542018/2/22
收件人
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

未读,
2018年2月23日 03:44:332018/2/23
收件人
Greatly appreciated.

~Tao
0 个新帖子