# New Ticket Created by Zoffix Znet # Please include the string: [perl #131831] # in the subject line of all future correspondence about this issue. # <URL: https://rt.perl.org/Ticket/Display.html?id=131831 >
The full issue and some discussion can be seen on zef's Issue https://github.com/ugexe/zef/issues/190 After working around --ll-exception, we managed to dump full stack trace. It points to this line in CURI https://github.com/rakudo/rakudo/blob/7599e0c3ffb2c7ef29c2994c7d212360459f14fe/src/core/CompUnit/Repository/Installation.pm#L424 It's checking for `.e` but probably should be checking for `.f`. I'm not sure if that's all to the issue (probably not) and perhaps someone more familiar with the codebase would know WHY the $lookup ends up being a directory instead of the expected file: $ cd $(mktemp -d); mkdir Exceptions; echo 'class Exceptions::Foo { method process ($e) { say "$e.message() $e.backtrace.full()"; False } }' > Exceptions/Foo.pm6; RAKUDO_EXCEPTIONS_HANDLER=Foo perl6 -I. -MExceptions::Foo /usr/share/perl6/vendor/bin/zef '/usr/share/perl6/vendor/short/34674DE0B49051C42E89F10D51FE788C3C3A3816' is a directory, cannot do '.open' on a directory in method throw at SETTING::src/core/Exception.pm line 57 in block at SETTING::src/core/CompUnit/Loader.pm line 25 in block at SETTING::src/core/CompUnit/Loader.pm line 23 in any at /usr/share/perl6/runtime/CORE.setting.moarvm line 1 in method throw at SETTING::src/core/Exception.pm line 54 in method throw at SETTING::src/core/Failure.pm line 44 in method Str at SETTING::src/core/Failure.pm line 85 in method lines at SETTING::src/core/Cool.pm line 169 in method lines at SETTING::src/core/IO/Path.pm line 629 in block at SETTING::src/core/CompUnit/Repository/Installation.pm line 425 in block at SETTING::src/core/CompUnit/Repository/Installation.pm line 424 in method matching-dist at SETTING::src/core/CompUnit/Repository/Installation.pm line 421 in method need at SETTING::src/core/CompUnit/Repository/Installation.pm line 503 in method need at SETTING::src/core/CompUnit/Repository/Installation.pm line 543 in method need at SETTING::src/core/CompUnit/Repository/Installation.pm line 543 in method need at SETTING::src/core/CompUnit/Repository/FileSystem.pm line 148 in any load_module at src/Perl6/World.nqp line 1218 in any do_pragma_or_load_module at src/Perl6/World.nqp line 1148 in any statement_control:sym<use> at src/Perl6/Grammar.nqp line 1640 in any statement_control at /usr/share/nqp/lib/Perl6/Grammar.moarvm line 1 in any statement at src/Perl6/Grammar.nqp line 1292