-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tests fail on current rakudo #5
Comments
See the README for how to run the full tests. Do you have a suggestion of how to make this automatic for distributions? |
You could skip the tests that need them if the mustache specs aren't found. |
Fixed, thank you! |
Issue is not fixed, I can reproduce now with a fresh rakudo and panda build. It does not fail with OS X homebrew version Although the CATCH block is being called, the program still aborts. Here is a simplified test case:
And result:
|
Putting a default { ... } block around the code inside the CATCH will fix it. This oversight was hidden by the fact that until recently, a 'try' didn't properly enforce 'use fatal', so your code would continue to run if it was a "soft" Failure, instead of an Exception. As documented at http://design.perl6.org/S04.html#Exception_handlers , a CATCH is similar to a 'given' block, with the important difference that putting code directly in the block is not the same as having an actual default {}, because not "handling" the exception by an explicit when or default case will cause it to be rethrown. Hope that helps and makes sense. :) |
Since dir() produces a Failure, you don't even need a try/catch, you can do something like this:
|
Thank you, raydiak and moritz. Issue is actually fixed now, see a0bf17f. |
A
panda install Task::Star
fails withThe text was updated successfully, but these errors were encountered: