Skip to content
Tcl Source Code History Of Ticket 2141271
Login

History Of Ticket 2141271

Artifacts Associated With Ticket 2141271

  1. Ticket change [7e0853fd08] (rid 97337) by yurivict on 2008-10-01 22:43:45:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Please compile and run an attached .c file.
      
      When run it prints an empty errorInfo obtained after a particular wrong command.
      
      errorInfo should *always* be set if Tcl_ParseCommand returns and error.
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "yurivict"
    10. subsystem initialized to: "None"
    11. title initialized to:
      Tcl_ParseCommand doesn't set errorInfo for a wrong command
      
    12. type initialized to: "Bug"
  2. Ticket change [e1bf9035c2] (rid 87508) by yurivict on 2008-10-02 05:43:45:

    1. icomment:
      
      
      File Added - 295702: parse-error.c
      
      
      
    2. login: "yurivict"
    3. mimetype: "text/plain"
    4. username: "yurivict"
  3. Add attachment "parse-error.c" [ed4393348a] (rid 103847) by yurivict on 2008-10-02 05:43:45.

  4. Ticket change [4c39008ad9] (rid 126844) by dgp on 2008-10-02 22:57:19:

    1. assignee changed to: "dgp"
    2. icomment:
      
      Please report the version of Tcl
      in which you see the problem.
      
      
      
    3. login: "dgp"
    4. mimetype: "text/plain"
    5. subsystem changed to: "45. Parsing and Eval"
    6. username: "dgp"
  5. Ticket change [ec300a0f16] (rid 103671) by dgp on 2008-10-02 23:29:59:

    1. icomment:
      
      See the docs for Tcl_ParseCommand:
      
      "If an error  occurred  in  parsing the
      command then TCL_ERROR is returned, an
      error message is left in interp’s result,
      and no information is left at *parsePtr."
      
      You will find the error message in the
      interp result, not in the ::errorInfo
      variable.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [f58f59f79b] (rid 130136) by dgp on 2008-10-02 23:31:33:

    1. icomment:
      
      Use 
      
      const char *msg = Tcl_GetStringResult(interp);
      
      to fix your code.
      
      If you also want ::errorInfo set, you can
      achieve that by adding
      
      Tcl_AddErrorInfo(interp,"")
      
      in the branch that handles the TCL_ERROR
      return values.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [107710084d] (rid 94976) by dgp on 2008-10-02 23:32:57:

    1. closedate changed to: "2008-10-02T16:32:57"
    2. closer changed to: "dgp"
    3. resolution changed to: "Invalid"
    4. status changed to: "Closed"
  8. Ticket change [55c3b183a1] (rid 94205) by yurivict on 2008-10-02 23:35:45:

    1. icomment:
      I see this problem in both tcl-8.4.19 and tcl-8.5.4 with a minor difference.
      In tcl-8.4.19 errorInfo is returned as an empty string and in tcl-8.5.4 -- as a null string.
      
      
      
    2. login: "yurivict"
    3. mimetype: "text/plain"
    4. resolution changed to: "None"
    5. status changed to: "Open"
    6. username: "yurivict"
  9. Ticket change [f078d793bf] (rid 109201) by yurivict on 2008-10-02 23:47:28:

    1. icomment:
      This is quite confusing that there are so many error message variables.
      
      
      
    2. login: "yurivict"
    3. mimetype: "text/plain"
    4. username: "yurivict"
  10. Ticket change [3596377ad5] (rid 106963) by dgp on 2008-10-02 23:55:48:

    1. closedate changed to: "2008-10-02T16:55:48"
    2. closer changed to: "dgp"
    3. foundin changed to: "obsolete: 8.4.19"
    4. resolution changed to: "Invalid"
    5. status changed to: "Closed"