|Subject:||`unhandled Failure detected in DESTROY` on `require`|
|From:||Alexander Kiryuhin <alexander.kiryuhin [...] gmail.com>|
|Date:||Wed, 30 Aug 2017 16:44:40 +0300|
|To:||rakudobug [...] perl.org|
It works, but occasionally throws:
This one is tough.
http://colabti.org/irclogger/irclogger_log/perl6?date=2017-08-30#l469 - the original conversation with Zoffix.
WARNING: unhandled Failure detected in DESTROY. If you meant to ignore it, you can mark it as handled by calling .Bool, .so, .not, or .defined methods. The Failure was:
No such symbol 'Cro::Tools::Template::ZeroMQWorkerService'
in sub get-available-templates at /home/koto/Work/cro/cro/lib/Cro/Tools/TemplateLocator.pm6 (Cro::Tools::TemplateLocator) line 31
in sub MAIN at /home/koto/Work/cro/cro/lib/Cro/Tools/CLI.pm6 (Cro::Tools::CLI) line 115
in block <unit> at bin/cro line 1
So there are basically two problems here:
1)This package really exists with a correct name and everything(see below). Yet it throws.
2)Even if it isn't, it should throw, then be caught by catch block, etc.
How to reproduce:
1) zef install cro # To get all the dependencies.
3) cd cro
4) git reset --hard fb251c594c3ed04cd9a16c1b045f4380abb40549 # To reset a workaround
5) perl6 -Ilib bin/cro stub http my-test-service ./my-test-service :secure; # A couple of times, it's good to write it like
6) (opt) perl6 -Ilib bin/cro stub http my-test-service ./my-test-service :secure; rm -rf my_test_service/ # to remove the directory immediately for easier multi-try.
Maybe not for the first time, but this occurs maybe for every 3 times, or 10 times in a row - based on your luck.
Anything, especially golfing is appreciated. Or better name(especially this).
>This is Rakudo version 2017.08-28-gd8958fc37 built on MoarVM version 2017.08.1-19-g151a2563