Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 37869
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: ddascalescu+perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 5.7014
Fixed in: (no value)



Subject: Regression: path_to now needs to be run after __PACKAGE__->setup()
In 5.7014, calling path_to() before __PACKAGE__->setup(), as instructed for example by the initialization sequence at http://search.cpan.org/dist/Catalyst-View-TT-0.27/lib/Catalyst/View/TT.pm, generates the following warning: Use of uninitialized value $_[0] in string eq at /opt/local/lib/perl5/site_perl/5.10.0/Path/Class/Dir.pm line 16. Use of uninitialized value $_[0] in string eq at /opt/local/lib/perl5/site_perl/5.10.0/Path/Class/Dir.pm line 16. path_to() worked fine in this context in Catalyst::Runtime 5.7006. To reproduce the bug, please see http://scsys.co.uk:8001/17063 HTH, Dan Dascalescu
This is actually an issue with the code generated from Catalyst::Devel 1.07. If you revert your code to look like this: --- package TestApp; use strict; use warnings; use Catalyst::Runtime '5.70'; use Catalyst qw/ConfigLoader Static::Simple/; our $VERSION = '0.01'; __PACKAGE__->config( name => 'TestApp', ape => TestApp->path_to('t') ); # Start the application __PACKAGE__->setup(); warn __PACKAGE__->config()->{ape}; 1; --- Then all is well. Things were reverted back to this style in Catalyst::Devel 1.08. Please upgrade. -Brian