Raku / tap-harness6

A TAP harness for Raku
Artistic License 2.0
8 stars 15 forks source link

Complaints about deprecated Proc code #46

Closed tbrowder closed 2 years ago

tbrowder commented 2 years ago

Message received when executing zef:

$ zef install --force-install .
===> Testing [OK] for Raku::Lint:ver<0.1.0>
===> Installing: Raku::Lint:ver<0.1.0>

1 bin/ script [raku-lint] installed to:
/home/tbrowde/.raku/bin
Saw 1 occurrence of deprecated code.
================================================================================
Method status (from Proc) seen at:
  /home/tbrowde/.raku/sources/6FEC28FA0762AC132736C81C67CCDB823E5E83FA (TAP), lines 104,111
Please use exitcode and/or signal methods (status is to be removed in 2022.06) instead.
--------------------------------------------------------------------------------
Please contact the author to have these occurrences of deprecated code
adapted, so that this message will disappear!

The offending lines :

    method wait() {
        $!exit-status.defined ?? $!exit-status.status !! Int;         # <== line 104
    }
    method exit-failed() {
        $!exit-status.defined && $!exit-status.status;                 # <== line 111
    }
Leont commented 2 years ago

This is already fixed in 0.2.1, you're probably using an older version of TAP

tbrowder commented 2 years ago

Leon, I'm sorry. I thought I had the latest, but didn't. All is working well now. :-D