Subject: | define_kiokudb_schema with gin on breaks Catalyst::Model::DBIC::Schema |
basically all you have to do is make a skeleton cat app, basic dbic
schema with kioku in it, call __PACKAGE__->define_kiokudb_schema() and
use Catalyst::Model::DBIC::Schema to tie it all together and it will all
fail to compile. My stack trace said this:
# Tried to use 'Catalyst::Test'.
# Error: Couldn't load class (Lynx) because: Couldn't instantiate
component "Lynx::Model::DB", "Can't call method "isa" on an undefined
value at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/DBIx/Class/Componentised.pm
line 37."Compilation failed in require at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/i686-linux/Class/MOP.pm
line 117.
# at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/i686-linux/Class/MOP.pm
line 123
# Class::MOP::__ANON__('Couldn\'t instantiate component
"Lynx::Model::DB", "Can\'t ca...') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Try/Tiny.pm
line 100
# Try::Tiny::try('CODE(0x8e63880)',
'Try::Tiny::Catch=REF(0x8d2b608)') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/i686-linux/Class/MOP.pm
line 128
# Class::MOP::load_first_existing_class('Lynx') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/i686-linux/Class/MOP.pm
line 140
# Class::MOP::load_class('Lynx') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Catalyst/Test.pm
line 23
# Catalyst::Test::__ANON__('Catalyst::Test', 'all',
'HASH(0x8e63850)', 'HASH(0x8753218)') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Sub/Exporter.pm
line 493
# Sub::Exporter::_expand_group('Catalyst::Test',
'HASH(0x8e63380)', 'ARRAY(0x8e63370)', 'HASH(0x8753218)',
'HASH(0x8e638a0)', 'HASH(0x87532a8)') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Sub/Exporter.pm
line 424
# Sub::Exporter::_expand_groups('Catalyst::Test',
'HASH(0x8e63380)', 'ARRAY(0x8e63450)', 'HASH(0x8753218)') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Sub/Exporter.pm
line 742
# Sub::Exporter::__ANON__('Catalyst::Test', '-all',
'HASH(0x87532f8)') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Catalyst/Test.pm
line 122
# Catalyst::Test::import('Catalyst::Test', 'Lynx') called at (eval
13) line 2
# main::BEGIN() called at (eval 13) line 2
# eval {...} called at (eval 13) line 2
# eval 'package main;
# use Catalyst::Test @{$args[0]};
# 1;
#
# ;' called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/Test/More.pm line 885
# Test::More::_eval('package main;\x{a}use Catalyst::Test
@{$args[0]};\x{a}1;\x{a}', 'ARRAY(0x85f7cc8)') called at
/home/frew/perl5/perlbrew/perls/perl-5.14.1/lib/5.14.1/Test/More.pm line 860
# Test::More::use_ok('Catalyst::Test', 'Lynx') called at
t/controller/dashboard.t line 9
# main::BEGIN() called at (eval 13) line 2
# eval {...} called at (eval 13) line 2
# BEGIN failed--compilation aborted at (eval 13) line 2.
# Looks like you failed 1 test of 1.
I'm just gonna do gin => 0 for now and live without it.