Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the KiokuDB-Backend-DBI CPAN distribution.

Report information
The Basics
Id: 69452
Status: open
Priority: 0/
Queue: KiokuDB-Backend-DBI

People
Owner: Nobody in particular
Requestors: frioux [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: define_kiokudb_schema with gin on breaks Catalyst::Model::DBIC::Schema
Download (untitled) / with headers
text/plain 3.1k
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.
Download (untitled) / with headers
text/plain 259b
Show quoted text
> I'm just gonna do gin => 0 for now and live without it.
I meant gin_index => 0, but that actually doesn't work. I think fixing that is a fairly simple endeavor: https://github.com/frioux/kiokudb-backend-dbi/commit/0dac5de75496f95588de6634b10a2a5b0307a66f
Download (untitled) / with headers
text/plain 208b
Hoping to actually get some traction on this bug, so I made a basic repo that shows the bug in action. I'll see if I can actually fix it too, but I'm not super confident. https://github.com/frioux/kiokubug
Subject: Re: [rt.cpan.org #69452] define_kiokudb_schema with gin on breaks Catalyst::Model::DBIC::Schema
Date: Tue, 16 Aug 2011 13:51:26 +0300
To: bug-KiokuDB-Backend-DBI [...] rt.cpan.org
From: Yuval Kogman <nuffin [...] cpan.org>
Download (untitled) / with headers
text/plain 263b
My laptop is dead and has been for slightly over a month, but I'm getting my replacement one later today! Hopefully I can ship this by the end of the week. Maybe some comaintainer on #kiukudb can be tricked into doing this before I get a round tuit ;-) Thanks!
Download (untitled) / with headers
text/plain 555b
On Tue Aug 16 06:51:57 2011, NUFFIN wrote: Show quoted text
> My laptop is dead and has been for slightly over a month, but I'm
getting my Show quoted text
> replacement one later today! > > Hopefully I can ship this by the end of the week. Maybe some
comaintainer on Show quoted text
> #kiukudb can be tricked into doing this before I get a round tuit ;-) > > Thanks!
Good to hear you're still alive :-) So the underlying bug is in DBIx::Class and ribasushi is already working on a fix for that, but I think my patch should still be merged in; most of us using the DBIC stuff won't need GIN anyway...


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.