Artifacts Associated With Ticket 3399564
Ticket change [961dfd8e4d] (rid 106269) by mistachkin on 2011-08-28 07:01:31:
- assignee initialized to: "msofer"
- cmimetype initialized to: "text/plain"
- comment initialized to:
It seems that attempting to use Tcl_GetCommandInfo and then calling the cmdInfo.objProc for NRE-enabled commands does not really work. No error is generated; however, it appears that the command is not executed. The code in question is here (on the Fossil tcl-integration branch): http://www.fossil-scm.org/index.html/artifact?ci=tip&filename=src/th_tcl.c&ln=148-160
- foundin initialized to: "obsolete: 8.6b2"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "mistachkin"
- subsystem initialized to: "45. Parsing and Eval"
- title initialized to:
Cannot invoke cmdInfo.objProc for NRE-enabled commands
- type initialized to: "Bug"
Ticket change [e922dc34f2] (rid 104760) by msofer on 2011-08-28 21:31:44:
- icomment:
That link doesn't work, found instead https://www.fossil-scm.org/index.html/artifact/9077c7d0f2347a47b5fe30242532fbaf1d63ab77
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [e2e80ab509] (rid 87700) by msofer on 2011-08-28 22:19:55:
- icomment:
Can you please provide some evidence/hints as to "appears that the command is not executed", and how NRE-enabled commands enter into the picture? Note that PURE nre-commands (those that only have an nreProc but no objProc) will bomb (objProc==NULL). These are coroutine, tailcall, yield and also any command created by [coroutine]. For all others commands, things should work properly irrespective of their being NRE-enabled or not.
- login: "msofer"
- mimetype: "text/plain"
- username: "msofer"
- icomment:
Ticket change [24f3ab8d9a] (rid 131199) by mistachkin on 2011-08-29 06:43:39:
- icomment:
In order for the link to work, I believe you have to at least login as anonymous.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [3738407a17] (rid 107238) by mistachkin on 2011-08-29 15:32:06:
- icomment:
I think I have figured out the problem. The Tcl_EvalObjCmd function calls TclNREvalObjEx; however, TclNRRunCallbacks is never called when Tcl_EvalObjCmd is invoked via the objProc.
- login: "mistachkin"
- mimetype: "text/plain"
- username: "mistachkin"
- icomment:
Ticket change [bf7df323a3] (rid 102259) by msofer on 2011-08-29 17:46:01:
- closedate changed to: "2011-08-29T10:46:01"
- closer changed to: "msofer"
- icomment:
allow_comments - 1 Good catch: [eval]'s objProc was actually an nreProc. Fixed in trunk.
- login: "msofer"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Closed"
- username: "msofer"
Ticket change [47e026c63f] (rid 133950) by jan.nijtmans on 2013-09-17 11:01:06:
- assignee changed to: "aku"
- closedate changed to: "2456552.95910179"
- closer changed to: "jan.nijtmans"
- comment changed to:
It seems that attempting to use Tcl_GetCommandInfo and then calling the cmdInfo.objProc for NRE-enabled commands does not really work. No error is generated; however, it appears that the command is not executed. The code in question is here (on the Fossil tcl-integration branch): http://www.fossil-scm.org/index.html/artifact?ci=tip&filename=src/th_tcl.c&ln=148-160
- icomment: "Fixed in [6fde6aa738]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- severity changed to: "Minor"