Skip to content
Tcl Source Code Artifact [d16639d8a7]
Login

Artifact [d16639d8a7]

Artifact d16639d8a72b39f592caad8a7438ff814e663484:

Ticket change [d16639d8a7] - New ticket [3562482fffffffff|3562482fff] <i>info frame gives wrong line number in catch</i>. by duquette on 2012-08-28 16:10:06.
D 2012-08-28T16:10:06
J assignee nobody
J cmimetype text/plain
J comment This\soccurs\sin\sTcl\s8.5.10\son\sWindows\s7,\sTcl\s8.5.10.\s\sThe\sfollowing\sscript\s(also\sattached)\n\n====================================================\nset\sscript\s{\n\s\s\s\sputs\s"line\s2:\s[info\sframe\s0]"\n\s\s\s\sset\sa\s5\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s;#\sEnd\sline\scomment\n\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s;#\sEnd\sline\scomment\swith\sunneeded\ssemi-colon\n\s\s\s\sputs\s"line\s5:\s[info\sframe\s0]"\n}\n\ncatch\s$script\n=====================================================\n\ngives\sthe\sfollowing\soutput:\n\n=====================================================\n$\stclsh\sbug2.tcl\nline\s2:\stype\seval\sline\s2\scmd\s{info\sframe\s0}\slevel\s0\nline\s5:\stype\seval\sline\s4\scmd\s{info\sframe\s0}\slevel\s0\n=====================================================\n\nThe\sline\snumber\sreported\sby\sthe\ssecond\s[info\sframe]\scall\sis\soff\sby\sone\sline\snumber.\n\nThe\sculprit\sappears\sto\sbe\sthe\sline\sjust\sprevious,\swhich\sbegins\swith\s"\s\s\s\s;#".\s\sThe\ssemi-colon\sis\sunnecessary,\sand\sif\sit\sis\sremoved,\sthe\sline\snumber\sis\sreported\scorrectly.\n\nSubsequent\soccurrences\sof\sthe\ssame\spattern\swill\scause\sthe\soffset\sto\sincrement.
J foundin None
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter duquette
J subsystem None
J title info\sframe\sgives\swrong\sline\snumber\sin\scatch
J type Bug
K 3562482fffffffffffffffffffffffffffffffff
U duquette
Z 7aa77673da78cbed9c355b6abd3dcc14