[Catalyst] Unknown error

2009-05-01 Thread Octavian Râşniţă

Hi,

I've tried to install Catalyst::Devel with ActivePerl 5.10.0 under Fedora, 
but I received the warning below.


I read that bug ticket and I've seen that this bug was patched in perl 
5.10.1.


Does this mean that if I will compile Perl 5.10.0 from the tarball, it will 
give the same error?
If yes, is Perl 5.10.1 available somewhere and stable enough for beeing 
recommended to install it?

If no, do you have a better suggestion for solving this issue?

Thank you.

The warning:

### WARNING #
#   #
# You are using perl 5.10.0 with the Unknown error bug. This can make #
# developing Catalyst applications much more painful, as it will come   #
# up with no details every time you have a syntax error in a Controller.#
#   #
# For more information see: #
#   #
#  * http://rt.perl.org/rt3/Public/Bug/Display.html?id=49472#
#   #
# It is highly recommended that you use a different version of perl or  #
# compile a patched version for Catalyst development.   #
#   #
# To skip this check, set the CATALYST_DEVEL_NO_510_CHECK environment   #
# variable. #
#   #
#
Do you want to continue? [no]


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Unknown error in Catalyst/Utils.pm line 272

2009-03-28 Thread Ben Vinnerd

Hi all,

I keep getting the following error when there's a problem with my code:

*Unknown error\nCompilation failed in require at 
/usr/local/lib/perl5/site_perl/5.10.0/Catalyst/Utils.pm line 272.*


I get this error in error_log when trying to start Apache with buggy 
code... not very helpful when trying to debug!


As an example, the following code (in my Root.pm):

sub test :Local
{
   my ($self, $c) = @_;
   my $this = 'hello world';
   $c-res-body($that);
}

...gives me the error. I'd expect the error message to be:Global symbol 
$that requires explicit package name


Is this a common gotcha?

Ben


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Unknown error in Catalyst/Utils.pm line 272

2009-03-28 Thread Kieren Diment

@kd purl, unknown error
22:32  purl well, unknown error is always caused by a syntax error  
in a controller or

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488088

On 29/03/2009, at 9:29 AM, Ben Vinnerd wrote:


Hi all,

I keep getting the following error when there's a problem with my  
code:


*Unknown error\nCompilation failed in require at /usr/local/lib/ 
perl5/site_perl/5.10.0/Catalyst/Utils.pm line 272.*


I get this error in error_log when trying to start Apache with buggy  
code... not very helpful when trying to debug!


As an example, the following code (in my Root.pm):

sub test :Local
{
 my ($self, $c) = @_;
 my $this = 'hello world';
 $c-res-body($that);
}

...gives me the error. I'd expect the error message to be:Global  
symbol $that requires explicit package name


Is this a common gotcha?

Ben


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Unknown error in Catalyst/Utils.pm line 272

2009-03-28 Thread Ben Vinnerd
Thanks very much, Kieren. This has been driving me insane, as i use 
Catalyst both at work and home, and only get this problem at home. Now i 
know the reason why.


Cheers :)

Ben


Kieren Diment wrote:

@kd purl, unknown error
22:32  purl well, unknown error is always caused by a syntax error 
in a controller or

 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=488088

On 29/03/2009, at 9:29 AM, Ben Vinnerd wrote:


Hi all,

I keep getting the following error when there's a problem with my code:

*Unknown error\nCompilation failed in require at 
/usr/local/lib/perl5/site_perl/5.10.0/Catalyst/Utils.pm line 272.*


I get this error in error_log when trying to start Apache with buggy 
code... not very helpful when trying to debug!


As an example, the following code (in my Root.pm):

sub test :Local
{
 my ($self, $c) = @_;
 my $this = 'hello world';
 $c-res-body($that);
}

...gives me the error. I'd expect the error message to be:Global 
symbol $that requires explicit package name


Is this a common gotcha?

Ben


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/

Dev site: http://dev.catalyst.perl.org/



___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: 
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/

Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/