Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Mouse CPAN distribution.

Report information
The Basics
Id: 41580
Status: resolved
Priority: 0/
Queue: Mouse

People
Owner: Nobody in particular
Requestors: VOVKASM [...] cpan.org
Cc: autarch [...] urth.org
AdminCc:

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



CC: autarch [...] urth.org
Subject: Squirrel isn't usable after latest moose update
MIME-Version: 1.0
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Charset: utf8
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1228869560-22029-46"
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain
Content-Transfer-Encoding: binary
Content-Length: 821
Download (untitled) / with headers
text/plain 821b
Hi, After Moose update 0.62->0.63 (because this I add Dave to CC, may be he can help), modules uses Squirrel in some cases will break. I try simplify test case (in attachment) maximum, but it requires Data::Visitor. Problem in my eyes: 1. Data::Visitor, uses Squirrel Data::Visitor::Callback subclass of Data::Visitor, uses Squirrel Squirrel uses Mouse or Moose depend on INC 2. from test case Some module uses Data::Visitor (before Moose loaded) - Mouse in game... Next, another module load Moose and try use Data::Visitor::Callback - Moose in game!!! but parent class already use Mouse In that place something wrong now :-| PS. "critical" because it completely break any big Catalyst app, if that application uses Catalyst::Controller::HTML::FormFu... It is a workaround - load Moose before any catalyst stuff, but...
Subject: test-data-visitor.pl
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="----------=_1228869560-22029-45"
X-Mailer: MIME-tools 5.426 (Entity 5.426)
Charset: utf8
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 0
Content-Type: application/x-perl; name="test-data-visitor.pl"
Content-Disposition: inline; filename="test-data-visitor.pl"
Content-Transfer-Encoding: base64
Content-Length: 682
#!perl my $data = 'ok'; print "1..2\n"; eval { test1::ok($data); 1 } or print "not ok - $@\n"; eval { test2::ok($data); 1 } or print "not ok - $@\n"; print "perl was: $]\n"; print "Mouse was: $Mouse::VERSION\n"; print "Moose was: $Moose::VERSION\n"; package test1; use Data::Visitor; use base 'Data::Visitor'; sub visit_value { print $_[1],"\n" } sub ok { print @Data::Visitor::ISA,"\n"; my $v = test1->new; $v->visit(shift); } package test2; use Moose; # comment this and all will be ok use Data::Visitor::Callback; sub ok { print @Data::Visitor::ISA,"\n"; my $v = Data::Visitor::Callback->new(value => sub { print $_[1],"\n" }); $v->visit(shift); }
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-6459-1229043150-1388.41580-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 206
Download (untitled) / with headers
text/plain 206b
Show quoted text
> Squirrel uses Mouse or Moose depend on INC
After some thinking: may be the best to change this behaviour to: "Squirrel uses Mouse if Moose not installed at all" (use Class::Inspector->installed for ex) ?
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-29719-1234228144-1994.41580-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 178
Download (untitled) / with headers
text/plain 178b
Hi Vovkasm, Squirrel is being deprecated in favor of Any::Moose which gets this right by making the "use Moose or Mouse" decision only once. Please use that instead. :) Shawn


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.