Catalyst used to use Module::Plugable::Fast for component autodiscovery
Now it uses Module::Pluggable::Object.
This behaviour was fixed for M::P::F a while back but evidently hasn't been for M::P::O (and MPO produces a more cryptic error message too :( ). So if you're up to it, rtfs for both, make a patch for MPO and send it to the author or to RT noting that the behaviour was fixed in MPF a while back.
On 28/07/06, apv <[EMAIL PROTECTED]> wrote:
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: [email protected]
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/
> [email protected]/
> Dev site: http://dev.catalyst.perl.org/
_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
