Skip to content
Tcl Source Code History Of Ticket 15eb59f050a07d07
Login

History Of Ticket 15eb59f050a07d07

Artifacts Associated With Ticket 15eb59f050a07d07

  1. Ticket change [5a30f3aa13] (rid 168162) by anonymous29 on 2019-01-06 15:02:16:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      Hi,
      
      I am upgrading TCL from 8.4.13 to 8.6.8 but getting below error 
            Tcl interpreter error : invalid command name "::tcl::clock::format"
      
      Clock command working fine on TCL prompt. but,
      I used below method to run clock command. 
      tclEvalGetResult("clock format [clock sec]", res, 1024)
      
      This was working fine with tcl8.4.13.
      
    5. foundin initialized to: "8.6.8"
    6. is_private initialized to: "0"
    7. login: "anonymous29"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "f31bbee5d57cdca64b0ff5fb39afeb99e5f9c194"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "anonymous29"
    14. subsystem initialized to: "- New Builtin Commands"
    15. title initialized to: "Clock command stop working"
    16. type initialized to: "Bug"
  2. Ticket change [5f5114153f] (rid 168163) by sebres on 2019-01-06 23:57:50:

    1. icomment:
      The mentioned method (tclEvalGetResult) is not from Tcl self.
      This looks like some external invocation. You need to provide the part of code inside (used Tcl_Eval... or similar functions) in order to find what is wrong here. 
      
      Anyway it looks like some initialization is missing there (or auto-loading is broken for some reasons).
      If your script is running from not-properly initialized Tcl-interpreter (e. g. where original init.tcl is not evaluated), you'll be unable to do several things.
      Like auto-loading of clock.tcl (happens on demand if clock-ensemble needs to be extended with tclish procedures).
      
      In order to check what is going on within your application, (e. g. you have correct tcl-library loaded, etc.):
      - check return code after each routines called to initialize Tcl within your application, and if it is not TCL_OK, please provide result of Tcl_GetReturnOptions (or value of ::errorInfo variable);
      - try manually load of clock.tcl, like following code-piece and try again your code/method
      ```tcl
      source [file join [info library] clock.tcl]
      ```
      For example you can try to add it temporary at end of your init.tcl to test it.
      If it would work, you may have some customizations in your init.tcl that avoid auto-loading resp. produce some errors somewhere in loading/unknown-handlers.
      If not then please provide more info what is tclEvalGetResult, what it does and how the tcl is initialized in the application and how the tcl-install and packages folders look.
      
      Another question is: is this interpreter safe? and if yes, do you have another (basically main) interpreter that is not created as safe?
      
    2. login: "sebres"
    3. mimetype: "text/plain"
    4. subsystem changed to: "38. Init - Library - Autoload"