| Ticket UUID: | 15eb59f050a07d07c00264c238de758df4e1386d | ||
| Title: | Clock command stop working | ||
| Type: | Bug | Created on: | 2019-01-06 15:02:16 |
| Submitter: | anonymous29 | Assigned to: | nobody |
| Subsystem: | 38. Init - Library - Autoload | Severity: | Minor |
| Priority: | 5 Medium | Last modified: | 2019-01-06 23:57:50 |
| Status: | Open | Closed by: | nobody |
| Resolution: | None | Closed on: | |
| Version: | 8.6.8 | ||
| Description: | ||||
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.
| ||||
| User Comments: | ||||
sebres added on 2019-01-06 23:57:50:
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? | ||||
