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:
Low/Low

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

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
(no value)



Subject: define_kiokudb_schema with gin on breaks Catalyst::Model::DBIC::Schema
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 3178
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.
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-12437-1310589407-1555.69452-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 259
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
MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-12437-1310589407-1555.69452-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <rt-3.8.HEAD-12437-1310589407-1555.69452-0-0@rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-22514-1313444778-606.69452-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 208
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
From nothingmuch@woobling.org Tue Aug 16 06: 51:56 2011
MIME-Version: 1.0
X-Spam-Status: No, score=-7.692 tagged_above=-99.9 required=10 tests=[AWL=-0.793, BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-12436-1310588295-1850.69452-4-0@rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-69452@rt.cpan.org> <rt-3.8.HEAD-12436-1310588295-1850.69452-4-0@rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <CAAQdECAmGjZwgjR0S5F7zmCP0HsLp8KBRzpkJ2pZ2HFQ6-sa1g@mail.gmail.com>
Content-Type: multipart/alternative; boundary=bcaec51b9de385cdff04aa9d2a94
X-Spam-Score: -7.692
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 35EC224063A for <cpan-bug+KiokuDB-Backend-DBI@hipster.bestpractical.com>; Tue, 16 Aug 2011 06:51:56 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oo4uTfmflJBY for <cpan-bug+KiokuDB-Backend-DBI@hipster.bestpractical.com>; Tue, 16 Aug 2011 06:51:55 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 965D02405CE for <bug-KiokuDB-Backend-DBI@rt.cpan.org>; Tue, 16 Aug 2011 06:51:54 -0400 (EDT)
Received: (qmail 17829 invoked by uid 103); 16 Aug 2011 10:51:53 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 16 Aug 2011 10:51:53 -0000
Received: from mail-ey0-f174.google.com (HELO mail-ey0-f174.google.com) (209.85.215.174) by 16.mx.develooper.com (qpsmtpd/0.80/v0.80-19-gf52d165) with ESMTP; Tue, 16 Aug 2011 03:51:50 -0700
Received: by eyx24 with SMTP id 24so3852449eyx.33 for <bug-KiokuDB-Backend-DBI@rt.cpan.org>; Tue, 16 Aug 2011 03:51:47 -0700 (PDT)
Received: by 10.14.145.144 with SMTP id p16mr860354eej.39.1313491906841; Tue, 16 Aug 2011 03:51:46 -0700 (PDT)
Received: by 10.14.188.9 with HTTP; Tue, 16 Aug 2011 03:51:26 -0700 (PDT)
Delivered-To: cpan-bug+KiokuDB-Backend-DBI@hipster.bestpractical.com
Subject: Re: [rt.cpan.org #69452] define_kiokudb_schema with gin on breaks Catalyst::Model::DBIC::Schema
Return-Path: <nothingmuch@woobling.org>
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+KiokuDB-Backend-DBI@hipster.bestpractical.com
X-RT-Mail-Extension: kiokudb-backend-dbi
X-Google-Sender-Auth: Anq2YLMkgVa1-IsHWQ2uJKcsR-k
Sender: nothingmuch@woobling.org
Date: Tue, 16 Aug 2011 13:51:26 +0300
X-Spam-Level:
To: bug-KiokuDB-Backend-DBI@rt.cpan.org
From: Yuval Kogman <nuffin@cpan.org>
RT-Message-ID: <rt-3.8.HEAD-22515-1313491917-1679.69452-0-0@rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
Content-Length: 263
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 335
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!

MIME-Version: 1.0
In-Reply-To: <rt-3.8.HEAD-22515-1313491917-1679.69452-0-0@rt.cpan.org>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <RT-Ticket-69452@rt.cpan.org> <rt-3.8.HEAD-12436-1310588295-1850.69452-4-0@rt.cpan.org> <CAAQdECAmGjZwgjR0S5F7zmCP0HsLp8KBRzpkJ2pZ2HFQ6-sa1g@mail.gmail.com> <rt-3.8.HEAD-22515-1313491917-1679.69452-0-0@rt.cpan.org>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-20559-1314283255-1554.69452-0-0@rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 555
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 runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

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