Re: [Dbix-class] dbix + perl5.18
Dear Peter, oh great to hear that. i skipped the upgrade-task a while ago(or better moved to the future), and did not touch things, since our last conversation. but the time will come within the next months to contiune the upgrade of modules-project. that means, right now, i cant test your fix. i'll try to get back my test-devel environment soon, and let you know if your fix, solved the problem. cherrz, bernhard On 24.01.14 09:33, Peter Rabbitson wrote: On Wed, Jun 12, 2013 at 03:42:20PM +0200, Bernhard Bauch wrote: dear dbix-folks, i just upgraded to the latest perl 5.18 and from that time i got problems with loading my dbix:class Schema errors for example look like this (only one at a time ..randomly): This is *finally* fixed in DBIC 0.08250_0*. If you are still on this project please test the latest devrel to make sure it solves your problem: https://metacpan.org/release/RIBASUSHI/DBIx-Class-0.08250_06 https://twitter.com/dbix_class/status/426621707843948546 Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk !DSPAM:52e289f016543634715495! -- Bernhard Bauch, Webdevelopment ZSI - Zentrum für soziale Innovation ba...@zsi.at Skype: berni-zsi signature.asc Description: OpenPGP digital signature ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
Re: [Dbix-class] dbix + perl5.18
On Wed, Jun 12, 2013 at 03:42:20PM +0200, Bernhard Bauch wrote: dear dbix-folks, i just upgraded to the latest perl 5.18 and from that time i got problems with loading my dbix:class Schema errors for example look like this (only one at a time ..randomly): This is *finally* fixed in DBIC 0.08250_0*. If you are still on this project please test the latest devrel to make sure it solves your problem: https://metacpan.org/release/RIBASUSHI/DBIx-Class-0.08250_06 https://twitter.com/dbix_class/status/426621707843948546 Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
Re: [Dbix-class] dbix + perl5.18
On Wed, Jun 12, 2013 at 04:55:56PM +0200, Bernhard Bauch wrote: sorry its not on a repository ... its kind of a PRISM CIA top secret project .. no ..i can send a tar/ball/gz will all reladed classes../packages there alot.. directly to your email .. or on the list ? I still have not received anything privately. Can you send me the requested tarball so we can figure out the real cause of this bug? Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
Re: [Dbix-class] dbix + perl5.18
On Wed, Jun 12, 2013 at 03:42:20PM +0200, Bernhard Bauch wrote: dear dbix-folks, ... i figured out where the problem is! since perl 5.18 hash-ramdomizatiomn is used see: https://metacpan.org/module/RJBS/perl-5.18.0/pod/perldelta.pod#Hash-randomization in DBIx::Class::Schema.pm line 232: my %results = $class-_map_namespaces(@$result_namespace); an ordered list of result classes is stored in an hash This can't be true - _map_namespaces returns a list, without any kind of order (it's Filesystem order). Even if it did - the order would not be preserved on older perls either, after the hash assignment. later in line242: for my $res (values %results) { $class-ensure_class_loaded($res); this hash is used the error ist, that values return a randomly sorted list now ... the correct order coming from $class-_map_namespaces(@$result_namespace); is neglected. this was my workaround-fix --- diff Schema.pm_fix Schema.pm 235,241d234 # correct order !!! my @result_classes; foreach my $class ( $class-_map_namespaces(@$result_namespace) ){ push (@result_classes, $class) if $class =~ /Schema::Result/; } 249,250c242 #for my $res (values %results) { for my $res ( @result_classes ) { --- for my $res (values %results) { --- This can't be the correct fix due to reasons described above. Something else is happening that prevents a *specific class* requiring its far-relationship side. Please provide several definitions of the adected classes (both the ones that throw an exception, and the ones whose load fails). maybe this should be fixed in upcoming DBIx::Class releases ? It should definitely be fixed, but first the real problem must be identified ;) Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
Re: [Dbix-class] dbix + perl5.18
On 12.06.2013, at 16:17, Peter Rabbitson wrote: On Wed, Jun 12, 2013 at 03:42:20PM +0200, Bernhard Bauch wrote: dear dbix-folks, ... i figured out where the problem is! since perl 5.18 hash-ramdomizatiomn is used see: https://metacpan.org/module/RJBS/perl-5.18.0/pod/perldelta.pod#Hash-randomization in DBIx::Class::Schema.pm line 232: my %results = $class-_map_namespaces(@$result_namespace); an ordered list of result classes is stored in an hash This can't be true - _map_namespaces returns a list, without any kind of order (it's Filesystem order). Even if it did - the order would not be preserved on older perls either, after the hash assignment. oh sorry- i mis-read the code -- i thought _map_namespace provides an ordred list of modules (the order in which the modules need to be loaded) the order of the list (returned by $class-_map_namespaces(@$result_namespace) ) is always the same (not changing on reload/restart/compile) and my class load/run fine with that. but this : my %res ults = $class-_map_namespaces(@$result_namespace); for my $res (values %results) { print class: $res; } shows a different order every time... later in line242: for my $res (values %results) { $class-ensure_class_loaded($res); this hash is used the error ist, that values return a randomly sorted list now ... the correct order coming from $class-_map_namespaces(@$result_namespace); is neglected. this was my workaround-fix --- diff Schema.pm_fix Schema.pm 235,241d234 # correct order !!! my @result_classes; foreach my $class ( $class-_map_namespaces(@$result_namespace) ){ push (@result_classes, $class) if $class =~ /Schema::Result/; } 249,250c242 #for my $res (values %results) { for my $res ( @result_classes ) { --- for my $res (values %results) { --- This can't be the correct fix due to reasons described above. Something else is happening that prevents a *specific class* requiring its far-relationship side. Please provide several definitions of the adected classes (both the ones that throw an exception, and the ones whose load fails). this is the ordered class list returned by $class-_map_namespaces(@$result_namespace); loading: Newindigo::Schema::Result::Attachment loading: Newindigo::Schema::Result::Startpage loading: Newindigo::Schema::Result::Settings loading: Newindigo::Schema::Result::Object loading: Newindigo::Schema::Result::Zone loading: Newindigo::Schema::Result::Users loading: Newindigo::Schema::Result::UsersRole loading: Newindigo::Schema::Result::Page loading: Newindigo::Schema::Result::Country loading: Newindigo::Schema::Result::Stakeholder loading: Newindigo::Schema::Result::Role loading: Newindigo::Schema::Result::StakeholderUsers loading: Newindigo::Schema::Result::ZoneObject loading: Newindigo::Schema::Result::AttachmentBase loading: Newindigo::Schema::Result::Tag loading: Newindigo::Schema::Result::TagObject loading: Newindigo::Schema::Result::ProjectStakeholder loading: Newindigo::Schema::Result::Object::Project my Packages + inhertiance (for Newindigo::Schema::Result::Object::Project) look like this . (all other class above inherit from Newindigo::Schema::Result) package Newindigo::Schema::Result::Object::Project; use utf8; use Moose; use MooseX::NonMoose; use MooseX::MarkAsMethods autoclean = 1; extends 'Newindigo::Schema::Result::Object'; package Newindigo::Schema::Result::Object; use Moose; use namespace::autoclean; extends 'Newindigo::Schema::Result'; . package Newindigo::Schema::Result; use Moose; use namespace::autoclean; extends 'CatalystX::SEAC::Schema::Result'; . package CatalystX::SEAC::Schema::Result; use Moose; use MooseX::NonMoose; use namespace::autoclean; extends 'DBIx::Class::Core'; . need/want more infos ? thanks, bye, bernhard maybe this should be fixed in upcoming DBIx::Class releases ? It should definitely be fixed, but first the real problem must be identified ;) Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk -- Bernhard Bauch, Webdevelopment ZSI - Zentrum für soziale Innovation ba...@zsi.at Skype: berni-zsi ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN:
Re: [Dbix-class] dbix + perl5.18
sorry its not on a repository ... its kind of a PRISM CIA top secret project .. no ..i can send a tar/ball/gz will all reladed classes../packages there alot.. directly to your email .. or on the list ? thanks! On 12.06.2013, at 16:44, Peter Rabbitson wrote: On Wed, Jun 12, 2013 at 04:34:00PM +0200, Bernhard Bauch wrote: need/want more infos ? Yes - I need the relationship definitions between classes as well - this is where your exception is occuring. A class is allowed to load another class, *outside* of the Schema.pm codeflow. This is where the problem lies, Schema.pm has nothing to do with it. If this codebase is available somewhere in a repository I can just look there as well. Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk -- Bernhard Bauch, Webdevelopment ZSI - Zentrum für soziale Innovation ba...@zsi.at Skype: berni-zsi ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
Re: [Dbix-class] dbix + perl5.18
and actually.. i got (another?) inheritance problemregarding the inheritance of ResultSet Classes.. maybe it makes sens to describe the problem, when i send you the bunch of classes (cleaned up ... because some are full of useless and confusing crapi know ..send full code ...) ..tomorrow...have a good day. On 12.06.2013, at 16:44, Peter Rabbitson wrote: On Wed, Jun 12, 2013 at 04:34:00PM +0200, Bernhard Bauch wrote: need/want more infos ? Yes - I need the relationship definitions between classes as well - this is where your exception is occuring. A class is allowed to load another class, *outside* of the Schema.pm codeflow. This is where the problem lies, Schema.pm has nothing to do with it. If this codebase is available somewhere in a repository I can just look there as well. Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk -- Bernhard Bauch, Webdevelopment ZSI - Zentrum für soziale Innovation ba...@zsi.at Skype: berni-zsi ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
Re: [Dbix-class] dbix + perl5.18
On Wed, Jun 12, 2013 at 04:55:56PM +0200, Bernhard Bauch wrote: sorry its not on a repository ... its kind of a PRISM CIA top secret project .. no ..i can send a tar/ball/gz will all reladed classes../packages there alot.. directly to your email .. Direct email is fine. I won't be available for the next 3 hours, will look at things afterwards. Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
Re: [Dbix-class] dbix + perl5.18
On Wed, Jun 12, 2013 at 05:01:25PM +0200, Bernhard Bauch wrote: and actually.. i got (another?) inheritance problemregarding the inheritance of ResultSet Classes.. Is this problem new on 5.18 as well, or it is unrelated? If unrelated - we we look at it afterwards. Cheers ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk