Skip Menu |

This queue is for tickets about the Moose CPAN distribution.

Report information
The Basics
Id: 92232
Status: resolved
Priority: 0/
Queue: Moose

People
Owner: ether [...] cpan.org
Requestors: harold.frayman [...] theguardian.com
Cc:
AdminCc:

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



Subject: Moose::Exception
Date: Fri, 17 Jan 2014 15:11:41 +0000
To: bug-Moose [...] rt.cpan.org
From: Harold Frayman <harold.frayman [...] theguardian.com>
Hi I'm not sure of this is a Moose bug or not -- until I find the real cause of my problem, which is causing the exception in the first place, I won't know for sure. But it feels like it. My code is (rightly) throwing a Moose::Exception::AttributeIsRequired when trying to update a database. My code had been running without revealing problems under an earlier Moose -- it's inside an eval which returns undef on failure. DBIx/Class/Storage/TxnScopeGuard.pm complains: Operation "ne": no method found, left argument in overloaded package Moose::Exception::AttributeIsRequired, right argument has no overloaded magic at ...line 26 and the program quits. At line 26 TxnScopeGuard tests defined $@ and $@ ne '' Someone tried to report a similar experience as a TxnScopeGuard bug, Bug #74991 for DBIx-Class: TxnScopeGuard dies if $@ contains object<https://rt.cpan.org/Public/Bug/Display.html?id=74991> but it was rejected "as the problem was identified as a botched exception class stringification." Could that be the case here? I'm using perl 5, version 16, subversion 2 (v5.16.2) built for darwin-2level Moose 2.1201 DBIx::Class 0.0825 Harold Frayman Please consider the environment before printing this email. ------------------------------------------------------------------ Visit theguardian.com On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad Save up to 57% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. Visit subscribe.theguardian.com This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News & Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News & Media Limited A member of Guardian Media Group plc Registered Office PO Box 68164 Kings Place 90 York Way London N1P 2AP Registered in England Number 908396 --------------------------------------------------------------------------
Subject: Re: [rt.cpan.org #92232] Moose::Exception
Date: Fri, 17 Jan 2014 09:31:10 -0800
To: Harold Frayman via RT <bug-Moose [...] rt.cpan.org>
From: Karen Etheridge <ether [...] cpan.org>
Show quoted text
> At line 26 TxnScopeGuard tests > defined $@ and $@ ne '' > Someone tried to report a similar experience as a TxnScopeGuard bug, Bug > #74991 for DBIx-Class: TxnScopeGuard dies if $@ contains > object<https://rt.cpan.org/Public/Bug/Display.html?id=74991> but > it was rejected "as the problem was identified as a botched exception class > stringification." > > Could that be the case here?
The irc conversation that identified the problem as such would be helpful here, so as to not duplicate work.
Subject: Re: [rt.cpan.org #92232] Moose::Exception
Date: Fri, 17 Jan 2014 17:37:59 +0000
To: bug-Moose [...] rt.cpan.org
From: Harold Frayman <harold.frayman [...] theguardian.com>
Karen It wasn't my bug report -- all I know about it is in ttps://rt.cpan.org/Public/Bug/Display.html?id=74991<https://rt.cpan.org/Public/Bug/Display.html?id=74991>, which popped up when I searched. Sorry, but I haven't seen the IRC chat. Harold On 17 January 2014 17:31, Karen Etheridge via RT <bug-Moose@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=92232 > >
> > At line 26 TxnScopeGuard tests > > defined $@ and $@ ne '' > > Someone tried to report a similar experience as a TxnScopeGuard bug, Bug > > #74991 for DBIx-Class: TxnScopeGuard dies if $@ contains > > object<https://rt.cpan.org/Public/Bug/Display.html?id=74991> but > > it was rejected "as the problem was identified as a botched exception
> class
> > stringification." > > > > Could that be the case here?
> > The irc conversation that identified the problem as such would be helpful > here, so as to not duplicate work. > > >
Please consider the environment before printing this email. ------------------------------------------------------------------ Visit theguardian.com On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad Save up to 57% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. Visit subscribe.theguardian.com This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News & Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News & Media Limited A member of Guardian Media Group plc Registered Office PO Box 68164 Kings Place 90 York Way London N1P 2AP Registered in England Number 908396 --------------------------------------------------------------------------
Subject: Re: [rt.cpan.org #92232] Moose::Exception
Date: Fri, 17 Jan 2014 10:20:29 -0800
To: Harold Frayman via RT <bug-Moose [...] rt.cpan.org>
From: Karen Etheridge <ether [...] cpan.org>
On Fri, Jan 17, 2014 at 12:38:30PM -0500, Harold Frayman via RT wrote: Show quoted text
> It wasn't my bug report -- all I know about it is in > ttps://rt.cpan.org/Public/Bug/Display.html?id=74991<https://rt.cpan.org/Public/Bug/Display.html?id=74991>, > which popped up when I searched. Sorry, but I haven't seen the IRC chat.
Ok, sorry, I'll track it down by other means then!
Reproducable: use strict; use warnings; use Test::More; use Test::Fatal; use Moose::Util 'throw_exception'; my $exception = exception { throw_exception( AttributeIsRequired => attribute_name => 'foo' ); }; ok(($exception ne ''), 'exception is a string'); gives: Operation "ne": no method found, left argument in overloaded package Moose::Exception::NeitherClassNorClassNameIsGiven, right argument has no overloaded magic at t/exceptions/exception-attributeisrequired.t line 31. 'perldoc overload' tells me that string comparison operators do not use the '""' overload, but only use the 'cmp' overload.
Fixed in github; will release this shortly (by the end of the weekend at the latest).
Subject: Re: [rt.cpan.org #92232] Moose::Exception
Date: Fri, 17 Jan 2014 19:53:29 +0000
To: bug-Moose [...] rt.cpan.org
From: Harold Frayman <harold.frayman [...] theguardian.com>
Thank you -- your'e too fast for me... but while I'm on, keep up the good work. Harold On 17 January 2014 19:50, Karen Etheridge via RT <bug-Moose@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=92232 > > > Fixed in github; will release this shortly (by the end of the weekend at > the latest). >
Please consider the environment before printing this email. ------------------------------------------------------------------ Visit theguardian.com On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad Save up to 57% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. Visit subscribe.theguardian.com This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News & Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News & Media Limited A member of Guardian Media Group plc Registered Office PO Box 68164 Kings Place 90 York Way London N1P 2AP Registered in England Number 908396 --------------------------------------------------------------------------
2.1202 released.
Subject: Re: [rt.cpan.org #92232] Moose::Exception
Date: Mon, 20 Jan 2014 08:48:14 +0000
To: bug-Moose [...] rt.cpan.org
From: Harold Frayman <harold.frayman [...] theguardian.com>
Karen Thank you -- that's what I call service. Harold On 20 January 2014 01:20, Karen Etheridge via RT <bug-Moose@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=92232 > > > 2.1202 released. >
Please consider the environment before printing this email. ------------------------------------------------------------------ Visit theguardian.com On your mobile, download the Guardian iPhone app theguardian.com/iphone and our iPad edition theguardian.com/iPad Save up to 57% by subscribing to the Guardian and Observer - choose the papers you want and get full digital access. Visit subscribe.theguardian.com This e-mail and all attachments are confidential and may also be privileged. If you are not the named recipient, please notify the sender and delete the e-mail and all attachments immediately. Do not disclose the contents to another person. You may not use the information for any purpose, or store, or copy, it in any way. Guardian News & Media Limited is not liable for any computer viruses or other material transmitted with or as part of this e-mail. You should employ virus checking software. Guardian News & Media Limited A member of Guardian Media Group plc Registered Office PO Box 68164 Kings Place 90 York Way London N1P 2AP Registered in England Number 908396 --------------------------------------------------------------------------