Skip to content
Tcl Source Code History Of Ticket 2008997fffffffff
Login

History Of Ticket 2008997fffffffff

Artifacts Associated With Ticket 2008997fffffffff

  1. Ticket change [54fee3143c] (rid 94053) by nobody on 2008-07-02 17:21:01:

    1. assignee initialized to: "dkf"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      If I have a command split over multiple lines such
      as
      
      1:  myProc myargs \
      2:      someMoreArgs
      3:  myProc 2ndCall \
      4:       moreArgs
      
      then 'info frame <i>' correctly reports the
      invocation lines of myProc.
      
      If I source the script containing the above
      invocations, then 'info frame' appears to lose
      count of the escaped newlines.
      
      In particular, when I call 'info frame i' to get
      the location of the "myProc call":
         - the first call correctly returns "line 1"
         - the second call incorrectly returns "line 2".
      If there are more multi-line commands, the line
      count goes off by one more, for each escaped newline.
      It seems that location tracking has not incremented
      the line number for the escaped newline.
      
      Similarly, given:
      
      1:  myProc [myOtherProc arg1] \
      2:      [myOtherProc arg2]
      
      [info frame] reports "1" as the caller-line for both invocations of "myOtherProc".  I expected "2" 
      as the caller location of for the invocation which
      used "arg2".  (I have no expectation for the order
      of invocation for the two calls to "myOtherProc".)
      
      The attached testcase illustrates the problem in
      a number of cases.  In particular:
        - all but the first "set_false_path" line numbers 
          is incorrect (and off by one more on each call)
        - the line number reported for the calls to
          "get_pins" illustrates the subcommand caller
          problem.
      
      To replicate:
         tar zxf infoFrameBug.tgz
         tclsh ./lineNoTest.tcl
         ... note that the very last "set_false_path" is reported to be on line 57...but is actually on line 61 of the file.
      
      The bug exists in the original 8.4 TIP patch for the
      'info frame' feature, and still exists in the 8.5.3
      TCL release that I downloaded this morning.
      
      The bug appears to occur only when I 
         source myscript.tcl
      ...not when I invoke the script directly.
      
      Thanks
      
      Henry (Cox)  [email protected]
      
          
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
      
    4. foundin initialized to: "obsolete: 8.5.3"
    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: "nobody"
    10. subsystem initialized to: "17. Commands I-L"
    11. title initialized to:
      info frame doesn't count multiline escapes in sourced file
      
    12. type initialized to: "Bug"
  2. Ticket change [a9ddad60bf] (rid 99229) by nobody on 2008-07-03 00:21:02:

    1. icomment:
      
      
      File Added - 283448: infoFrameBug.tgz
      
      
      
    2. login: "[email protected]"
    3. mimetype: "text/plain"
    4. username: "[email protected]"
  3. Add attachment "infoFrameBug.tgz" [d3e4e63833] (rid 123358) by [email protected] on 2008-07-03 00:21:02.

  4. Ticket change [e3eede1e85] (rid 87877) by andreas_kupries on 2008-07-03 00:45:40:

    1. assignee changed to: "andreas_kupries"
    2. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      Yes.
      That is a known bug/limitation of the current [info frame].
      The testsuite acknowledges that as well, file info.test, case 'info-30.0'.
      While the testcase mentions a possible solution we fear that a very complex a change is lurking behind the simple description.
      
      > The bug appears to occur only when I source myscript.tcl ...not when I invoke the script directly.
      
      This is new information. I theorize that this might be a difference between a bytecompiled and a direct eval'd script.
      
      
      
    3. login: "andreas_kupries"
    4. mimetype: "text/plain"
    5. username: "andreas_kupries"
  5. Ticket change [2d9b3f47a6] (rid 119092) by dgp on 2009-10-02 01:48:11:

    1. icomment:
      
      This is fixed now?
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [c6bcc4bb1c] (rid 121816) by dgp on 2009-10-02 01:48:14:

    1. closedate changed to: "2009-10-01T18:48:14"
    2. closer changed to: "dgp"
    3. status changed to: "Pending"
  7. Ticket change [58d7be2d6f] (rid 117866) by andreas_kupries on 2009-10-06 01:33:51:

    1. icomment:
      Should be fixed in the latest heads of 8.4/8.5/8.6 branches.
      The big commit on Aug 25.
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [a5b6b1255f] (rid 110422) by andreas_kupries on 2009-10-06 01:34:11:

    1. closedate changed to: "2009-10-05T18:34:11"
    2. closer changed to: "andreas_kupries"
    3. icomment:
      
      
      allow_comments - 1
      
      
      
    4. login: "andreas_kupries"
    5. mimetype: "text/plain"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"
    8. username: "andreas_kupries"