1

Attempting to install Specio::Constraint::Simple, running into the following error:

Can't resolve method "???" overloading "&{}" in package "Specio::Constraint::Simple" at Specio::Constraint::Simple->new line 35.

Only related article I have found has been: https://rt.cpan.org/Public/Bug/Display.html?id=117975

Any suggestions would be appreciated.

Thank you

toolic
  • 57,801
  • 17
  • 75
  • 117
Nate H
  • 322
  • 1
  • 5
  • 20
  • 1
    It sure looks like it's the same issue that's documented in that very recent RT. – simbabque Sep 23 '16 at 18:49
  • 1
    Same issue: http://www.cpantesters.org/cpan/report/dc685bca-6bf8-1014-86c7-0a1de40d07e9 – melpomene Sep 23 '16 at 19:05
  • 1
    This may be a bug in older versions of [Role::Tiny](https://metacpan.org/pod/Role::Tiny) that was [fixed in 1.003003](https://metacpan.org/source/HAARG/Role-Tiny-2.000003/Changes#L27). Which version of Role::Tiny do you have? Does upgrading it fix it? – melpomene Sep 24 '16 at 18:10
  • @melpomene Holy script, that fixed it! Thanks for the assistance, it is *very* much appreciated. Can you add that as an answer and I'll mark it as such? – Nate H Sep 26 '16 at 13:02

1 Answers1

1

This is caused by a bug in older versions of Role::Tiny that was fixed in version 1.003003:

  • overloads specified as method names rather than subrefs are now applied properly

Upgrading Role::Tiny should fix it and allow Specio::Constraint::Simple to be installed normally.

Actually, you don't even need to do that manually: Version 0.26 of Specio now requires at least version 1.003003 of Role::Tiny. Any future attempt to install Specio will upgrade Role::Tiny automatically (if required).

melpomene
  • 84,125
  • 8
  • 85
  • 148