[Catalyst] Major (for me) problem fixed!

apv apv at sedition.com
Fri Jul 28 10:24:55 CEST 2006


I complained about this quite some time ago and was told to use the  
"restartregex" option to filter that out (and "scratch_file~" of  
course). Instead of suggesting that, I'll join in in complaining  
again. :)


–Ashley
--


On Jul 28, 2006, at 1:05 AM, Jonathan Rockway wrote:
> After upgrading to 5.7, I occasionally got the following error when
> starting my server:
>
> $ CATALYST_DEBUG=1 perl script/blog_server.pl -r
> Warning: Use of "require" without parentheses is ambiguous at (eval  
> 94)
> line 1.
> syntax error at (eval 94) line 2, at EOF
> Compilation failed in require at script/blog_server.pl line 52.
>
> This was very annoying, and since it would randomly come and go, I
> couldn't debug the cause.  I finally decided to run the program under
> the Perl debugger, and immediately the cause of the problem became  
> clear:
>
> Warning: Use of "require" without parentheses is ambiguous at (eval
> 108)[/usr/local/share/perl/5.8.8/Catalyst/Utils.pm:252] line 1.
>  at (eval 108)[/usr/local/share/perl/5.8.8/Catalyst/Utils.pm:252]  
> line 1
>         eval 'require Blog::Controller::.#Feeds;' called at
> /usr/local/share/perl/5.8.8/Catalyst/Utils.pm line 252
>
> Catalyst::Utils::ensure_class_loaded('Blog::Controller::.#Feeds',
> 'HASH(0x9f8d004)') called at /usr/local/share/perl/5.8.8/Catalyst.pm
> line 1798
>         Catalyst::setup_components('Blog') called at
> /usr/local/share/perl/5.8.8/Catalyst.pm line 836
> -- >8 cut 8< --
>
> As you can see, Catalyst was trying (and failing) to load emacs'
> autosave files as a Controller!  I don't know if emacs is widespread
> enough to warrant ignoring all files that are like ".#[^/]+", but if
> you're having this problem, there's the fix.  Delete all non- 
> Controller
> files in your Controller folder, and you'll be very happy :)
>
> Regards,
> Jonathan Rockway
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/ 
> catalyst at lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/




More information about the Catalyst mailing list