Static::SimpleとFormValidator::Simple::Auto


Catalyst::Plugin::Static::Simple
と、
Catalyst::Plugin::FormValidator::Simple::Auto
は同時に使えない……?(つーかモジュール名長すぎ)
エラーの意味が全然わかりませぬ(‘A`)

$ ./myapp_server.pl 
[debug] Debug messages enabled
[debug] Statistics enabled
[debug] Loaded plugins:
.----------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader  0.27                                       |
| Catalyst::Plugin::FormValidator::Simple  0.13                              |
| Catalyst::Plugin::FormValidator::Simple::Auto  0.18                        |
'----------------------------------------------------------------------------'

  〜中略〜

[info] MyApp powered by Catalyst 5.80007
Couldn't load class (MyApp) because: Inconsistent hierarchy during C3 merge of class 'MyApp': merging failed on parent 'Catalyst::Plugin::FormValidator::Simple::Auto' at /opt/local/lib/perl5/5.10.1/darwin-2level/mro.pm line 27.
Compilation failed in require at /opt/local/lib/perl5/site_perl/5.10.1/darwin-2level/Class/MOP.pm line 98.
 at /opt/local/lib/perl5/site_perl/5.10.1/darwin-2level/Class/MOP.pm line 102

  〜以下略〜


MyApp.pmのソース

package MyApp;
use Moose;
use namespace::autoclean;

use Catalyst::Runtime 5.80;

use Catalyst qw/
    -Debug
    ConfigLoader
    Static::Simple
    FormValidator::Simple
    FormValidator::Simple::Auto
/;

extends 'Catalyst';

our $VERSION = '0.01';
$VERSION = eval $VERSION;

__PACKAGE__->config(
    name => 'MyApp',
    # Disable deprecated behavior needed by old applications
    disable_component_resolution_regex_fallback => 1,
);

# Start the application
__PACKAGE__->setup();

1;

コメントを残す