Subject: | HTML::FormFu::Preload warns about deprecated Chained traits |
Bugreport written for HTML::FormFu
----
$ perl -MHTML::FormFu::Preload\ 999
Implicit use of the Chained trait is deprecated. Please load MooseX::Attribute::Chained explicitly at /home/felixostmann/perl5lib/lib/Moose/Meta/Attribute/Custom/Trait/Chained.pm line 19.
HTML::FormFu::Preload version 999 required--this is only version 2.01.
BEGIN failed--compilation aborted.
In FormFu 0.09005 this warning also occure and was fixed in 0.09006.
From the Changes:
0.09006 2012-01-23
- fixed deprecation warnings of MX::Attribute::Chained (bricas)
...
I don't understand what is going on, but i guess there is one missing "use MooseX::Attribute::Chained;" somewhere ...
$ for I in $(find HTML/FormFu/ -name "*.pm" | perl -pe 's/\//::/g; s/\.pm//;'); do echo $I; perl -M$I\ 999; done 1>> /tmp/html-formfu.bug 2>&1
$ grep deprecated /tmp/html-formfu.bug -B1
HTML::FormFu::Plugin::RequestToken
Implicit use of the Chained trait is deprecated. Please load MooseX::Attribute::Chained explicitly at /home/felixostmann/perl5lib/lib/Moose/Meta/Attribute/Custom/Trait/Chained.pm line 19.
--
HTML::FormFu::Preload
Implicit use of the Chained trait is deprecated. Please load MooseX::Attribute::Chained explicitly at /home/felixostmann/perl5lib/lib/Moose/Meta/Attribute/Custom/Trait/Chained.pm line 19.
--
HTML::FormFu::Element::RequestToken
Implicit use of the Chained trait is deprecated. Please load MooseX::Attribute::Chained explicitly at /home/felixostmann/perl5lib/lib/Moose/Meta/Attribute/Custom/Trait/Chained.pm line 19.
So the RequestToken is the problem, but i don't see why. They load MooseX::Attribute::Chained explicitly like evey other module. After some digging in other Elements i find MooseX::Attribute::FormFuChained! Changing to FormFuChained in HTML::FormFu::Plugin::RequestToken and HTML::FormFu::Element::RequestToken the warning is gone.