Skip Menu |

This queue is for tickets about the namespace-autoclean CPAN distribution.

Report information
The Basics
Id: 96441
Status: resolved
Priority: 0/
Queue: namespace-autoclean

People
Owner: ether [...] cpan.org
Requestors: ANDK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in:
  • 0.16-TRIAL
  • 0.17
Fixed in: 0.18



Subject: 0.16 broke App::Sqitch
https://github.com/theory/sqitch/issues/169 Just a cross reference, I suppose.
On 2014-06-13 19:19:19, ANDK wrote: Show quoted text
> https://github.com/theory/sqitch/issues/169 > > Just a cross reference, I suppose.
Oh, is it namespace::autoclean that caused it? Oh well. Fixed in https://github.com/theory/sqitch/commit/8d291e12da5869e06973d14cc6da7c6bf8464978.
RT-Send-CC: dwheeler [...] cpan.org, ANDK [...] cpan.org
On 2014-06-13 16:22:32, DWHEELER wrote: Show quoted text
> On 2014-06-13 19:19:19, ANDK wrote: >
> > https://github.com/theory/sqitch/issues/169 > > > > Just a cross reference, I suppose.
> > Oh, is it namespace::autoclean that caused it? Oh well. Fixed in > https://github.com/theory/sqitch/commit/8d291e12da5869e06973d14cc6da7c6bf8464978.
Given that you're importing a 'color' sub, and you've got an attribute called 'color' too, I'm surprised your code *ever* worked :)
CC: ANDK [...] cpan.org
Subject: Re: [rt.cpan.org #96441] 0.16 broke App::Sqitch
Date: Fri, 13 Jun 2014 17:44:54 -0700
To: bug-namespace-autoclean [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
On Jun 13, 2014, at 5:27 PM, Karen Etheridge via RT <bug-namespace-autoclean@rt.cpan.org> wrote: Show quoted text
> Given that you're importing a 'color' sub, and you've got an attribute called 'color' too, I'm surprised your code *ever* worked :)
Yeah, I was too. I think it worked before because of the function prototype. But anyway, better the way it is now, for sure. D
Download signature.asc
application/pgp-signature 842b

Message body not shown because it is not plain text.

The problem here was that App::Sqitch uses Mouse, so 0.16 and 0.17 were trying to use Mouse's meta class to determine what needed to be cleaned. Previous versions used a Moose meta class, even for Mouse classes. Mouse's metaclass provides inaccurate information for the method list, so the color sub wasn't getting cleaned. My fix, at https://github.com/moose/namespace-autoclean/pull/4, is to just use the fallback heuristic instead of Mouse's metaclass. This should behave the same as the previous version that used Moose.
On 2014-06-14 01:41:42, haarg wrote: Show quoted text
> The problem here was that App::Sqitch uses Mouse, so 0.16 and 0.17 > were trying to use Mouse's meta class to determine what needed to be > cleaned. Previous versions used a Moose meta class, even for Mouse > classes. Mouse's metaclass provides inaccurate information for the > method list, so the color sub wasn't getting cleaned. > > My fix, at https://github.com/moose/namespace-autoclean/pull/4, is to > just use the fallback heuristic instead of Mouse's metaclass. This > should behave the same as the previous version that used Moose.
I released 0.18 yesterday with this fix.