<i>Regression with TIP #636 in foreach</i> status still Open with 3 other changes
by
.
D 2023-07-09T16:25:18.212
J comment Github\sActions\stesting\sTk\strunk\son\sLinux\swith\sthe\smain\sTcl\s(9.0)\sbranch\s[https://github.com/tcltk/tk/actions/runs/5498558004/jobs/10023375244|results\sin\sthree\serrors]\sthat\swere\snot\spresent\sbefore.\r\n\r\n<verbatim>\r\n====\simgPhoto-4.79\sImgPhotoCmd,\stransparency\sget:\sno\soption\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sset\spixelCoords\s{{156\s239}\s{76\s207}\s{153\s213}\s{139\s43}\s{75\s112}}\r\n\s\s\s\sforeach\scoord\s$pixelCoords\s{\r\n\tlappend\sresult\s[photo1\stransparency\sget\s{*}$coord]\r\n\s\s\s\s}\r\n\s\s\s\sset\sresult\r\n\r\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\r\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\r\n----\serrorInfo:\scan't\sread\s"coord":\sno\ssuch\svariable\r\n\s\s\s\swhile\sexecuting\r\n"photo1\stransparency\sget\s{*}$coord"\r\n\s\s\s\s("foreach"\sbody\sline\s2)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"foreach\scoord\s$pixelCoords\s{\r\n\tlappend\sresult\s[photo1\stransparency\sget\s{*}$coord]\r\n\s\s\s\s}"\r\n\s\s\s\s("uplevel"\sbody\sline\s3)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"uplevel\s1\s$script"\r\n----\serrorCode:\sTCL\sLOOKUP\sVARNAME\scoord\r\n====\simgPhoto-4.79\sFAILED\r\n\r\n\r\n====\simgPhoto-4.81\sImgPhotoCmd,\stransparency\sget:\s-alpha\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sset\spixelCoords\s{{156\s239}\s{76\s207}\s{153\s213}\s{139\s43}\s{75\s112}}\r\n\s\s\s\sforeach\scoord\s$pixelCoords\s{\r\n\tlappend\sresult\s[photo1\stransparency\sget\s{*}$coord\s-alpha]\r\n\s\s\s\s}\r\n\s\s\s\sset\sresult\r\n\r\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\r\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\r\n----\serrorInfo:\scan't\sread\s"coord":\sno\ssuch\svariable\r\n\s\s\s\swhile\sexecuting\r\n"photo1\stransparency\sget\s{*}$coord\s-alpha"\r\n\s\s\s\s("foreach"\sbody\sline\s2)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"foreach\scoord\s$pixelCoords\s{\r\n\tlappend\sresult\s[photo1\stransparency\sget\s{*}$coord\s-alpha]\r\n\s\s\s\s}"\r\n\s\s\s\s("uplevel"\sbody\sline\s3)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"uplevel\s1\s$script"\r\n----\serrorCode:\sTCL\sLOOKUP\sVARNAME\scoord\r\n====\simgPhoto-4.81\sFAILED\r\n\r\n\r\n====\spanedwindow-17.1\sMoveSash,\smove\sright\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\spanedwindow\s.p\s-showhandle\sfalse\s-borderwidth\s0\s-sashpad\s0\s-sashwidth\s2\r\n\s\s\s\sforeach\sw\s{.f1\s.f2}\sc\s{red\sblue}\s{\r\n\s\s\s\s\s\s\s\s.p\sadd\s[frame\s$w\s-height\s20\s-width\s20\s-bg\s$c]\s-sticky\snsew\r\n\s\s\s\s}\r\n\r\n\s\s\s\s#\sGet\sthe\srequested\swidth\sof\sthe\spaned\swindow\r\n\s\s\s\slappend\sresult\s[winfo\sreqwidth\s.p]\r\n\r\n\s\s\s\s.p\ssash\splace\s0\s30\s0\r\n\r\n\s\s\s\s#\sGet\sthe\sreqwidth\sagain,\sto\smake\ssure\sit\shasn't\schanged\r\n\s\s\s\slappend\sresult\s[winfo\sreqwidth\s.p]\r\n\r\n\s\s\s\s#\sCheck\sthat\sthe\ssash\smoved\r\n\s\s\s\slappend\sresult\s[.p\ssash\scoord\s0]\r\n\r\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\r\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\r\n----\serrorInfo:\sunknown\scolor\sname\s"3"\r\n\s\s\s\s(processing\s"-bg"\soption)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"frame\s$w\s-height\s20\s-width\s20\s-bg\s$c"\r\n\s\s\s\s("foreach"\sbody\sline\s2)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"foreach\sw\s{.f1\s.f2}\sc\s{red\sblue}\s{\r\n\s\s\s\s\s\s\s\s.p\sadd\s[frame\s$w\s-height\s20\s-width\s20\s-bg\s$c]\s-sticky\snsew\r\n\s\s\s\s}"\r\n\s\s\s\s("uplevel"\sbody\sline\s3)\r\n\s\s\s\sinvoked\sfrom\swithin\r\n"uplevel\s1\s$script"\r\n----\serrorCode:\sTK\sLOOKUP\sCOLOR\s3\r\n====\spanedwindow-17.1\sFAILED\r\n\r\n</verbatim>\r\n\r\nplus\san\sadditional\serror\smessage:\r\n\r\n<verbatim>\r\n[...]\r\nunixWm.test\r\nTest\sfile\serror:\scan't\sread\s"geom":\sno\ssuch\svariable\r\nutil.test\r\n[...]\r\n</verbatim>\r\n\r\nBisection\sshows\sthat\sthe\sfirst\scommit\striggering\sthis\sregression\sis\s[91c2f411e7],\sthat\sis\sthe\smerge\sof\s[https://core.tcl-lang.org/tips/doc/trunk/tip/636.md|TIP\s#636]\simplementation\sinto\strunk.\r\n\r\nIn\sall\sthe\sfour\scases,\sthe\sproblem\sis\sin\sa\sforeach\sloop\sapparently\snot\sassigning\sa\svalue\sto\sthe\sloop\svariable.\r\n\r\nWarning:\sthe\sproblem\scannot\sbe\sreproduced\swhen\srunning\sonly\sthe\simgPhoto.test\sor\spanedwindow.test\sfile\sfrom\sTk.\sRunning\sthe\sentire\stest\ssuite\sof\sTk\sallows\showever\sto\sreproduce\s(on\sall\sthree\splatforms).
J login fvogel
J mimetype text/plain
K a34733451b2cf189528061944466cf7ce7015008
U fvogel
Z 0040146e85e3a3a38bcd982ccdc1a488