-
Notifications
You must be signed in to change notification settings - Fork 1
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
Can't programmatically require() module inside phasers (Cannot invoke this object (REPR: Null; VMNull)) #5621
Comments
From clifton.wood@gmail.comAttempting this from the commandline will trigger this already known issue: $ perl6 -Ilib -e 'my @r; BEGIN { @r = <Test>; }; INIT { require ::("$_") for @r };' ===SORRY!=== See also: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=129096 |
From clifton.wood@gmail.comCan someone move this to the perl6 queue, please. Thanks. On Sat Aug 27 21:24:25 2016, clifton.wood@gmail.com wrote:
|
From [Unknown Contact. See original ticket]Can someone move this to the perl6 queue, please. Thanks. On Sat Aug 27 21:24:25 2016, clifton.wood@gmail.com wrote:
|
From @cpansproutOn Sat Aug 27 21:28:37 2016, clifton.wood@gmail.com wrote:
Done. -- Father Chrysostomos |
The RT System itself - Status changed from 'new' to 'open' |
From @masak<Xliff_> require Color if $colorSupport; |
From @ugexe$ perl6 -e 'my $module-support = BEGIN (try require ::("Test")) !~~ Nil; INIT { if $module-support { require ::("Test"); }; }; say ?$module-support ?? ::("Test").perl !! "Failed to load"'
$ perl6 -e 'my $module-support = BEGIN (try require ::("XXX")) !~~ Nil; INIT { if $module-support { require ::("XXX"); }; }; say ?$module-support ?? ::("XXX").perl !! "Failed to load"'
|
From @zostayI ran into what I believe is this problem while working on some code that loads a Perl 6 CompUnit provided by the end-user. No phasers are involved. I am just running require ::("...") very late in the program. I wrote CompUnit::DynamicLib to help out with what I'm doing. With that library I can include some custom code like this: require-from <custom/path/lib>, $class-name; However, I started getting "Cannot invoke this object (REPR: Null; VMNull)". I was able to work around the issue by changing the code inside of CompUnit::DynamicLib from this: require ::($module-name); to this: # Work-around RT #129109 That's a slightly ugly work-around to the issue until this gets fixed. I don't know what require is failing to do that EVAL "use..." does, but maybe that provides a hint to the fixer as well. |
Migrated from rt.perl.org#129109 (status was 'open')
Searchable as RT129109$
The text was updated successfully, but these errors were encountered: