Skip to content
Tcl Source Code Artifact [54fee3143c]
Login

Artifact [54fee3143c]

Artifact 54fee3143c8cadf5cc5db3e53c139fe5008b472e:

Ticket change [54fee3143c] - New ticket [2008997fffffffff|2008997fff] <i>info frame doesn&#39;t count multiline escapes in sourced file</i>. by nobody on 2008-07-02 17:21:01.
D 2008-07-02T17:21:01
J assignee dkf
J cmimetype text/plain
J comment If\sI\shave\sa\scommand\ssplit\sover\smultiple\slines\ssuch\nas\n\n1:\s\smyProc\smyargs\s\\\n2:\s\s\s\s\s\ssomeMoreArgs\n3:\s\smyProc\s2ndCall\s\\\n4:\s\s\s\s\s\s\smoreArgs\n\nthen\s'info\sframe\s<i>'\scorrectly\sreports\sthe\ninvocation\slines\sof\smyProc.\n\nIf\sI\ssource\sthe\sscript\scontaining\sthe\sabove\ninvocations,\sthen\s'info\sframe'\sappears\sto\slose\ncount\sof\sthe\sescaped\snewlines.\n\nIn\sparticular,\swhen\sI\scall\s'info\sframe\si'\sto\sget\nthe\slocation\sof\sthe\s"myProc\scall":\n\s\s\s-\sthe\sfirst\scall\scorrectly\sreturns\s"line\s1"\n\s\s\s-\sthe\ssecond\scall\sincorrectly\sreturns\s"line\s2".\nIf\sthere\sare\smore\smulti-line\scommands,\sthe\sline\ncount\sgoes\soff\sby\sone\smore,\sfor\seach\sescaped\snewline.\nIt\sseems\sthat\slocation\stracking\shas\snot\sincremented\nthe\sline\snumber\sfor\sthe\sescaped\snewline.\n\nSimilarly,\sgiven:\n\n1:\s\smyProc\s[myOtherProc\sarg1]\s\\\n2:\s\s\s\s\s\s[myOtherProc\sarg2]\n\n[info\sframe]\sreports\s"1"\sas\sthe\scaller-line\sfor\sboth\sinvocations\sof\s"myOtherProc".\s\sI\sexpected\s"2"\s\nas\sthe\scaller\slocation\sof\sfor\sthe\sinvocation\swhich\nused\s"arg2".\s\s(I\shave\sno\sexpectation\sfor\sthe\sorder\nof\sinvocation\sfor\sthe\stwo\scalls\sto\s"myOtherProc".)\n\nThe\sattached\stestcase\sillustrates\sthe\sproblem\sin\na\snumber\sof\scases.\s\sIn\sparticular:\n\s\s-\sall\sbut\sthe\sfirst\s"set_false_path"\sline\snumbers\s\n\s\s\s\sis\sincorrect\s(and\soff\sby\sone\smore\son\seach\scall)\n\s\s-\sthe\sline\snumber\sreported\sfor\sthe\scalls\sto\n\s\s\s\s"get_pins"\sillustrates\sthe\ssubcommand\scaller\n\s\s\s\sproblem.\n\nTo\sreplicate:\n\s\s\star\szxf\sinfoFrameBug.tgz\n\s\s\stclsh\s./lineNoTest.tcl\n\s\s\s...\snote\sthat\sthe\svery\slast\s"set_false_path"\sis\sreported\sto\sbe\son\sline\s57...but\sis\sactually\son\sline\s61\sof\sthe\sfile.\n\nThe\sbug\sexists\sin\sthe\soriginal\s8.4\sTIP\spatch\sfor\sthe\n'info\sframe'\sfeature,\sand\sstill\sexists\sin\sthe\s8.5.3\nTCL\srelease\sthat\sI\sdownloaded\sthis\smorning.\n\nThe\sbug\sappears\sto\soccur\sonly\swhen\sI\s\n\s\s\ssource\smyscript.tcl\n...not\swhen\sI\sinvoke\sthe\sscript\sdirectly.\n\nThanks\n\nHenry\s(Cox)\s\[email protected]\n\n\s\s\s\s\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
J foundin obsolete:\s8.5.3
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter nobody
J subsystem 17.\sCommands\sI-L
J title info\sframe\sdoesn't\scount\smultiline\sescapes\sin\ssourced\sfile
J type Bug
K 2008997fffffffffffffffffffffffffffffffff
U nobody
Z bda47c4436b75fdd9afceb213f748f7b