<i>Errors that occur when using interp eval do not give relevant line number and filename locations</i> status still Open with 3 other changes
by
.
D 2025-03-06T19:12:06.255
J icomment Found\sit:\sthe\sissue\shas\sbeen\scaused\sby\sthe\sbug\sin\sTcl_GetReturnOptions,\swhat\ssets\sthe\serrorLine\sfrom\srethrown\serror\sfrom\sinvokehidden\sin\sAliasLoad\s(so\sit\scontains\sthe\sline\snumber\sfrom\sthis\sproc),\sbut\swithout\sthe\serrorInfo\s(which\sinitially\sempty,\sbut\shereafter\sgot\sfilled\sin\sTcl_GetReturnOptions\sby\s`Tcl_AddErrorInfo(interp,\s"")`\swith\sthrown\serror\smessage...\r\n\r\nSo\sultimately\swith\sthis\s3-way\stransfer\s(interp\seval\s->\sinvocation\sof\salias\sAliasLoad\s->\scalling\sinvokehidden)\sit\swould\sreach\sthe\scalling\sinterpreter\swith\snon-empty\serrorInfo\s(containing\sthe\serror\smessage\sonly,\swithout\sthe\scallstack).\r\n\r\nThe\swrong\sline\swithin\s`interp\seval`\sis\stherefore\sonly\san\safter\seffect\sof\sthe\sbug\sin\sTcl_GetReturnOptions.\r\nThus\sfixed\snow\sin\sTcl_GetReturnOptions,\swhere\sit'd\sreset\sthe\serrorLine\sif\sno\serrorInfo\swas\sinitially\sthrown\s(before\serrorInfo\sbecomes\supdated\sto\serror\smessage).
J login sebres
J mimetype text/x-markdown
K ba68d1e9484a3a92449fdaab4c377b534842c0e0
U sebres
Z b36f6f457afbb4c0d08f3168d720ecca