Re: compiled template error in Perl 5.26.1

Jim Battle <[email protected]> Fri, 09 Feb 2018 21:13:52 -0600
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============8260800264112232610==
Content-Type: multipart/alternative;
 boundary="------------050003090605030605060306"

This is a multi-part message in MIME format.
--------------050003090605030605060306
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Is there any TT patch to address that problem?  I am sitting on an older=20
version of perl and haven't updated for awhile for fear of breaking by=20
websites.

Thanks

> Johan Vromans <mailto:[email protected]>
> Sunday, October 29, 2017 1:09 PM
> On Sun, 29 Oct 2017 19:21:48 +0700, "Chakkit Ngamsom" <[email protected]=
th>
>
> As of Perl 5.26, the current directory ( '.' ) is no longer in @INC. Th=
is
> removal has caused many problems in many tools and programs.
>
> There are many discussions and workaround, please use google.
>
> -- Johan
>
> _______________________________________________
> templates mailing list
> [email protected]
> https://lists.ourshack.com/mailman/listinfo/templates
> Chakkit Ngamsom <mailto:[email protected]>
> Sunday, October 29, 2017 7:21 AM
>
> Hi,
>
> In Perl 5.26.1 I=E2=80=99ve got the below warning:
>
> [warn] Use of uninitialized value $compiled in concatenation (.) or=20
> string at=20
> /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwi=
n-thread-multi-2level/Template/Provider.pm=20
> line 572.
>
> [warn] compiled template : Can't locate=20
> tmp/ttc/view/dist/layouts/main.tt.ttc in @INC (@INC contains:=20
> /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwi=
n-thread-multi-2level=20
> /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1=20
> /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/darwin-thread-m=
ulti-2level=20
> /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at=20
> /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwi=
n-thread-multi-2level/Template/Provider.pm=20
> line 571.
>
> My app is running with Catalyst 5.90115 and Template Tookit 2.27 on=20
> macOS 10.12.6.
>
> I switched to Perl 5.24.3 and same Template Toolkit version via=20
> perlbrew and no errors there.
>
> Note that the app can render as usual but just the warning messages in=20
> log.
>
> It logged every time each file is rendered.
>
> Regards,
>
> --
>
> Chakkit Ngamsom
>
> _______________________________________________
> templates mailing list
> [email protected]
> https://lists.ourshack.com/mailman/listinfo/templates


--------------050003090605030605060306
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head>
<meta content=3D"text/html; charset=3DUTF-8" http-equiv=3D"Content-Type">
</head><body bgcolor=3D"#FFFFFF" text=3D"#000000">Is there any TT patch t=
o=20
address that problem?=C2=A0 I am sitting on an older version of perl and=20
haven't updated for awhile for fear of breaking by websites.<br>
<br>
Thanks<br>
<span>

</span><br>
<blockquote style=3D"border: 0px none;"=20
cite=3D"mid:20171029190952.3c2a376f-KjnUIgV0B0bak1Ioo/c9IoRWq/[email protected]" type=3D"cite">
  <div style=3D"margin:30px 25px 10px 25px;" class=3D"__pbConvHr"><div=20
style=3D"width:100%;border-top:2px solid #EDF1F4;padding-top:10px;">   <d=
iv
=20
style=3D"display:inline-block;white-space:nowrap;vertical-align:middle;wi=
dth:49%;">
   	<a moz-do-not-send=3D"true" href=3D"mailto:[email protected]"=20
style=3D"color:#485664=20
!important;padding-right:6px;font-weight:500;text-decoration:none=20
!important;">Johan Vromans</a></div>   <div=20
style=3D"display:inline-block;white-space:nowrap;vertical-align:middle;wi=
dth:48%;text-align:
 right;">     <font color=3D"#909AA4"><span style=3D"padding-left:6px">Su=
nday,
 October 29, 2017 1:09 PM</span></font></div>    </div></div>
  <div style=3D"color:#909AA4;margin-left:24px;margin-right:24px;"=20
__pbrmquotes=3D"true" class=3D"__pbConvBody"><div>On Sun, 29 Oct 2017=20
19:21:48 +0700, "Chakkit Ngamsom" <a class=3D"moz-txt-link-rfc2396E" href=
=3D"mailto:[email protected]">&lt;[email protected]&gt;</a><br></div><d=
iv><!----><br>As
 of Perl 5.26, the current directory ( '.' ) is no longer in @INC. This<b=
r>removal
 has caused many problems in many tools and programs.<br><br>There are=20
many discussions and workaround, please use google.<br><br>-- Johan<br><b=
r>_______________________________________________<br>templates
 mailing list<br><a class=3D"moz-txt-link-abbreviated" href=3D"mailto:tem=
[email protected]">[email protected]</a><br><a class=3D=
"moz-txt-link-freetext" href=3D"https://lists.ourshack.com/mailman/listin=
fo/templates">https://lists.ourshack.com/mailman/listinfo/templates</a><b=
r></div></div>
  <div style=3D"margin:30px 25px 10px 25px;" class=3D"__pbConvHr"><div=20
style=3D"width:100%;border-top:2px solid #EDF1F4;padding-top:10px;">   <d=
iv
=20
style=3D"display:inline-block;white-space:nowrap;vertical-align:middle;wi=
dth:49%;">
   	<a moz-do-not-send=3D"true" href=3D"mailto:[email protected]"=20
style=3D"color:#485664=20
!important;padding-right:6px;font-weight:500;text-decoration:none=20
!important;">Chakkit Ngamsom</a></div>   <div=20
style=3D"display:inline-block;white-space:nowrap;vertical-align:middle;wi=
dth:48%;text-align:
 right;">     <font color=3D"#909AA4"><span style=3D"padding-left:6px">Su=
nday,
 October 29, 2017 7:21 AM</span></font></div>    </div></div>
  <div style=3D"color:#909AA4;margin-left:24px;margin-right:24px;"=20
__pbrmquotes=3D"true" class=3D"__pbConvBody"><meta content=3D"text/html;=20
charset=3DUTF-8" http-equiv=3D"Content-Type"><meta content=3D"Microsoft W=
ord=20
15 (filtered medium)" name=3D"Generator"><style>&lt;!--
/* Font Definitions */
@font-face
	{font-family:"Cordia New";
	panose-1:2 11 3 4 2 2 2 2 2 4;}
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
span.EmailStyle17
	{mso-style-type:personal-compose;
	font-family:"Tahoma",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-family:"Calibri",sans-serif;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--&gt;</style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--><div class=3D"WordSection1"><p=20
class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">Hi,<o:p></o:p></span>=
</p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif"><o:p>=C2=A0</o:p></sp=
an></p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">In Perl 5.26.1 I=E2=80=
=99ve=20
got the below warning:<o:p></o:p></span></p><p class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif"><o:p>=C2=A0</o:p></sp=
an></p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">[warn] Use of=20
uninitialized value $compiled in concatenation (.) or string at=20
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-=
thread-multi-2level/Template/Provider.pm
 line 572.<o:p></o:p></span></p><p class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">[warn] compiled=20
template : Can't locate tmp/ttc/view/dist/layouts/main.tt.ttc in @INC=20
(@INC contains:=20
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-=
thread-multi-2level
 /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1=20
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1/darwin-thread-mul=
ti-2level
 /Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/5.26.1) at=20
/Users/lynx/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/darwin-=
thread-multi-2level/Template/Provider.pm
 line 571.<o:p></o:p></span></p><p class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif"><o:p>=C2=A0</o:p></sp=
an></p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">My app is running wit=
h
 Catalyst 5.90115 and Template Tookit 2.27 on macOS 10.12.6.<o:p></o:p></=
span></p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">I switched to Perl=20
5.24.3 and same Template Toolkit version via perlbrew and no errors=20
there.<o:p></o:p></span></p><p class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif"><o:p>=C2=A0</o:p></sp=
an></p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">Note that the app can=
=20
render as usual but just the warning messages in log.<o:p></o:p></span></=
p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">It logged every time=20
each file is rendered.<o:p></o:p></span></p><p class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif"><o:p>=C2=A0</o:p></sp=
an></p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif">Regards,<o:p></o:p></=
span></p><p
 class=3D"MsoNormal"><span=20
style=3D"font-family:&quot;Tahoma&quot;,sans-serif"><o:p>=C2=A0</o:p></sp=
an></p><p
 class=3D"MsoNormal">--<o:p></o:p></p><p class=3D"MsoNormal">Chakkit Ngam=
som<o:p></o:p></p><p
 class=3D"MsoNormal"><o:p>=C2=A0</o:p></p></div><div>____________________=
___________________________<br>templates
 mailing list<br><a class=3D"moz-txt-link-abbreviated" href=3D"mailto:tem=
[email protected]">[email protected]</a><br><a class=3D=
"moz-txt-link-freetext" href=3D"https://lists.ourshack.com/mailman/listin=
fo/templates">https://lists.ourshack.com/mailman/listinfo/templates</a><b=
r></div></div>
</blockquote>
<br>
</body></html>

--------------050003090605030605060306--


--===============8260800264112232610==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KdGVtcGxhdGVz
IG1haWxpbmcgbGlzdAp0ZW1wbGF0ZXNAbGlzdHMub3Vyc2hhY2suY29tCmh0dHBzOi8vbGlzdHMu
b3Vyc2hhY2suY29tL21haWxtYW4vbGlzdGluZm8vdGVtcGxhdGVzCg==

--===============8260800264112232610==--