[Catalyst] Major (for me) problem fixed!
Jonathan Rockway
jon at jrock.us
Fri Jul 28 10:05:13 CEST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 370 bytes
Desc: OpenPGP digital signature
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060728/c3cf5608/attachment.pgp
More information about the Catalyst
mailing list