Skip to content
Tcl Source Code History Of Ticket 7cc223908762351c
Login

History Of Ticket 7cc223908762351c

Artifacts Associated With Ticket 7cc223908762351c

  1. Ticket change [3cfb0aa00e] (rid 178172) by anonymous on 2020-01-01 18:29:44:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/plain"
    4. comment initialized to:
      When using continuation lines with the \<newline> substitution
      rule, it causes error trace-backs to have the wrong line numbers
      and [info body] doesn't return the original script as is, but
      only after the substitution, thus also affecting line numbers.
      
      For example, this script
      
      proc foo {args} {
      	set bar [string repeat \
      	"blah" \
      	50]
      	expr 1/0
      }
      foo
      
      will report a divide by zero error on line 3 of foo, not line 5.
       
      Also, [info body] will return the command changed as so:
      
      	set bar [string repeat "blah" 50]
      
      which can also affect the reporting of line numbers. 
      
      The problem is likely that the saving of the script for a
      proc is done after the \<newline> pre-process pass rather
      than before. This probably causes traceback to miscount 
      <newlines> while scanning the script text to find the line
      in error.
      
    5. foundin initialized to: "8.6.9"
    6. is_private initialized to: "0"
    7. login: "anonymous"
    8. priority initialized to: "5 Medium"
    9. resolution initialized to: "None"
    10. severity initialized to: "Minor"
    11. status initialized to: "Open"
    12. submitter initialized to: "anonymous"
    13. subsystem initialized to: "45. Parsing and Eval"
    14. title initialized to:
      continuation lines \<newline> produce wrong line numbers in tracebacks
      
    15. type initialized to: "Bug"