Menu

#267 "info vars" fails with no pattern

4.0*
closed-fixed
None
5
2018-04-02
2015-10-26
No

After Itcl is loaded, the "info vars" command fails if no pattern is supplied:

info vars
package require Itcl
info vars ;# <--------- fails

The second command fails with the error: "namespace "::" is not a class namespace". The workaround is to include the * pattern.

Discussion

  • Don Porter

    Don Porter - 2015-11-30

    I only see this bug on the dgp-method-type branch.

     
  • Don Porter

    Don Porter - 2018-04-02

    The "dgp-method-type" branch has become the Itcl 4.1.* branch which is now the trunk, so this needs a solution.

     
  • Don Porter

    Don Porter - 2018-04-02

    $ tclsh
    % dict get [namespace ensemble configure info -map] vars
    ::tcl::info::vars
    % package require Itcl
    4.1.1
    % dict get [namespace ensemble configure info -map] vars
    ::itcl::builtin::Info::vars

     
  • Don Porter

    Don Porter - 2018-04-02

    Don't know why it wasn't clear before, but this is a simple fix.

     
  • Don Porter

    Don Porter - 2018-04-02

    Fix committed to trunk. Will be in Itcl 4.1.2

     
  • Don Porter

    Don Porter - 2018-04-02
    • status: open --> closed-fixed
    • assigned_to: Don Porter
     

Log in to post a comment.