On 2017-07-04 01:16:16, REHSACK wrote:
Show quoted text> If I understand your report correctly, it's a duplicate of
>
https://github.com/celogeek/MooX-Options/issues/58.
>
> If not, please express much clearer what's your issue is. Otherwise
> I'll close it as duplicate within a week. Feel free to reopen then.
That's not the same issue at all, and it's also been closed.
package My::Class;
use Moo;
use MooX::Options;
use namespace::clean;
option myoption => (is => 'lazy', format => 's', builder => sub { 'a string' });
1;
results in:
Can't apply MooX::Options::Role to My::Class - missing _options_data, _options_config at .../lib/perl5/Moo/Role.pm line 288.
At a bare minimum, it needs to be documented that usage of namespace::clean (which is recommended by the Moo documentation) needs to be configured as:
use namespace::clean -except => [ qw(_options_data _options_config) ];
or possibly
use Moo; use namespace::clean; use MooX::Options; use namespace::clean 'option';