Discussion:
[jifty-devel] question about some warnings and one failed test with the git version of jifty.
William Schaub
2010-12-06 18:34:13 UTC
Permalink
when I run make test on the git version of jifty I get this warning:
You inherit from non-Mouse class (Plack::Response), but it is unlikely
to work correctly. Please consider using MouseX::Foreign at
/usr/local/share/perl/5.10.1/Jifty/Response.pm line 19

The tests all run fine though except for t/10-i18n.t:
***@ldapslave1:/home/wschaub/jiftyapps/git/jifty# prove -b t/10-i18n.t
t/10-i18n.t .. You inherit from non-Mouse class (Plack::Response), but
it is unlikely to work correctly. Please consider using MouseX::Foreign
at /home/wschaub/jiftyapps/git/jifty/blib/lib/Jifty/Response.pm line 19
t/10-i18n.t .. 1/2
# Failed test at t/10-i18n.t line 19.
# got: '1950-01-01T00:00:00'
# expected: '1950-01-01T00:00:00'
# Looks like you failed 1 test of 2.
t/10-i18n.t .. Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests

Test Summary Report
-------------------
t/10-i18n.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=1, Tests=2, 6 wallclock secs ( 0.12 usr 0.02 sys + 4.24 cusr
0.61 csys = 4.99 CPU)
Result: FAIL



Jifty seems to run fine though if I go ahead with the install. am I
doing something wrong or is this a bug?
Thomas Sibley
2010-12-06 18:54:33 UTC
Permalink
Post by William Schaub
You inherit from non-Mouse class (Plack::Response), but it is unlikely
to work correctly. Please consider using MouseX::Foreign at
/usr/local/share/perl/5.10.1/Jifty/Response.pm line 19
I can't replicate this. What are the versions of your Any::Moose,
Mouse, and Plack::Response?

Thomas
William Schaub
2010-12-06 19:07:04 UTC
Permalink
Post by Thomas Sibley
Post by William Schaub
You inherit from non-Mouse class (Plack::Response), but it is unlikely
to work correctly. Please consider using MouseX::Foreign at
/usr/local/share/perl/5.10.1/Jifty/Response.pm line 19
I can't replicate this. What are the versions of your Any::Moose,
Mouse, and Plack::Response?
Module id = Any::Moose
CPAN_USERID SARTAK (Shawn M Moore <***@gmail.com>)
CPAN_VERSION 0.13
CPAN_FILE S/SA/SARTAK/Any-Moose-0.13.tar.gz
MANPAGE Any::Moose - use Moose or Mouse modules
INST_FILE /usr/local/share/perl/5.10.1/Any/Moose.pm
INST_VERSION 0.13

Module id = Mouse
CPAN_USERID GFUJI (Goro Fuji <***@cpan.org>)
CPAN_VERSION 0.88
CPAN_FILE G/GF/GFUJI/Mouse-0.88.tar.gz
MANPAGE Mouse - Moose minus the antlers
INST_FILE /usr/local/lib/perl/5.10.1/Mouse.pm
INST_VERSION 0.87

Module id = Plack::Response
CPAN_USERID MIYAGAWA (Tatsuhiko Miyagawa <***@bulknews.net>)
CPAN_VERSION 0.9953
CPAN_FILE M/MI/MIYAGAWA/Plack-0.9953.tar.gz
MANPAGE Plack::Response - Portable HTTP Response object for
PSGI response
INST_FILE /usr/local/share/perl/5.10.1/Plack/Response.pm
INST_VERSION 0.9952


Hope that helps. I'm running Ubuntu 10.04.1 LTS I started out with the
ubuntu package but ended up unstalling that package
because the online docs didn't work. I also had trouble with installing
the CPAN version with the most recent modules on CPAN so I ended up
removing my site perl files in /usr/local and just did an apt-get
build-dep jifty and then tried the CPAN version, this gave me some
failed tests and so I built the git version of jifty (installing
Jifty::DBI from git first) to get where I am now.
Stanislav Sinyagin
2010-12-06 19:33:59 UTC
Permalink
I got exactly the same message today with freshly installed
Jifty, Jifty::DBI, and all prerequisite packages from today's CPAN.

The message is printed every time Jifty starts.




----- Original Message ----
Sent: Mon, December 6, 2010 8:07:04 PM
Subject: Re: [jifty-devel] question about some warnings and one failed test
with the git version of jifty.
You inherit from non-Mouse class (Plack::Response), but it is unlikely
to work correctly. Please consider using MouseX::Foreign at
/usr/local/share/perl/5.10.1/Jifty/Response.pm line 19
I can't replicate this. What are the versions of your Any::Moose,
Mouse, and Plack::Response?
Thomas Sibley
2010-12-06 19:45:48 UTC
Permalink
Post by Stanislav Sinyagin
I got exactly the same message today with freshly installed
Jifty, Jifty::DBI, and all prerequisite packages from today's CPAN.
The message is printed every time Jifty starts.
This is apparently a warning added to recent versions of Mouse. It
should be harmless (although annoying!) for Jifty.

It's been reported to the module author:
https://rt.cpan.org/Ticket/Display.html?id=63675

Thomas
Thomas Sibley
2010-12-06 19:47:51 UTC
Permalink
Post by William Schaub
t/10-i18n.t .. You inherit from non-Mouse class (Plack::Response), but
it is unlikely to work correctly. Please consider using MouseX::Foreign
at /home/wschaub/jiftyapps/git/jifty/blib/lib/Jifty/Response.pm line 19
t/10-i18n.t .. 1/2
# Failed test at t/10-i18n.t line 19.
# got: '1950-01-01T00:00:00'
# expected: '1950-01-01T00:00:00'
# Looks like you failed 1 test of 2.
I still can't replicate the test failure above (ignoring the Mouse
warning). It's especially strange since the expected and received
values appear identical. I wouldn't worry too much about it for now.

Thomas

Loading...