1. @*INC doesn't exist anymore. Any help to remove it from the docs appreciated. Not sure about 2 & 3. May be bugs.
On Sat, Mar 5, 2016 at 12:50 PM yary <perl6-bugs-follo...@perl.org> wrote: > # New Ticket Created by yary > # Please include the string: [perl #127658] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/Ticket/Display.html?id=127658 > > > > I'm not sure if I'm looking at an outdated doc, or if there's an issue > with Rakudo, so am posting here- let me know where to report. I'm > using the windows build of > > perl6 -v > This is Rakudo version 2016.01.1 built on MoarVM version 2016.01 > implementing Perl 6.c. > > First issue. https://doc.perl6.org/language/5to6-perlvar says "@INC... > it will probably not surprise you that this is @*INC in Perl 6."- yet > > > perl6 -e "say @*INC" > Dynamic variable @*INC not found > in block <unit> at -e line 1 > > Is @*INC renamed, thus requiring an update to "5to6-perlvar"- or is > Rakudo 2016.01.1 missing something it should be finding? Or am I doing > something wrong? > > > 2nd. I've cloned a module from GitHub into a local directory, but > can't load it in the REPL using the -I command line argument. From the > error message, it seems Rakudo's REPL ignores the -I argument > > perl6 -I c:\Users\yhluc00\Documents\GitHub\grammar-generative\lib -e > "use Grammar::Generative; say 'Alive'" > Alive > > perl6 -I c:\Users\yhluc00\Documents\GitHub\grammar-generative\lib > You may want to `panda install Readline` or `panda install Linenoise` > or use rlwrap for a line editor > > > use Grammar::Generative; > Could not find Grammar::Generative in: > C:\Users\yhluc00\AppData\Roaming\.perl6\2016.01.1 > C:\rakudo\share\perl6\site > C:\rakudo\share\perl6\vendor > C:\rakudo\share\perl6 > CompUnit::Repository::AbsolutePath<109859840> > CompUnit::Repository::NQP<104208984> > CompUnit::Repository::Perl5<104209024> > in any load_module at src/Perl6/World.nqp line 978 > ... > > I expected the REPL to respect the "-I" argument, and any other > command-line arguments, to the extent that a REPL can. But maybe my > expectation is missing a good reason to filter out all command-line > args from the REPL. Is this a REPL bug or a problem with my > understanding? > > > 3rd issue. Combining -I, -M and the REPL gives an error with any > attempted command, can't even exit. This seems to be a REPL bug. > > > perl6 -I c:\Users\yhluc00\Documents\GitHub\grammar-generative\lib -M > Grammar::Generative > You may want to `panda install Readline` or `panda install Linenoise` > or use rlwrap for a line editor > > > say 'Alive' > Could not find Grammar::Generative in: > C:\Users\yhluc00\AppData\Roaming\.perl6\2016.01.1 > C:\rakudo\share\perl6\site > C:\rakudo\share\perl6\vendor > C:\rakudo\share\perl6 > CompUnit::Repository::AbsolutePath<109900832> > CompUnit::Repository::NQP<104242840> > CompUnit::Repository::Perl5<104242880> > in any load_module at src/Perl6/World.nqp line 978 > in any do_pragma_or_load_module at src/Perl6/World.nqp line 909 > in any loading_and_symbol_setup at src/Perl6/World.nqp line 389 > in any comp_unit at src/Perl6/Grammar.nqp line 1138 > in any TOP at src/Perl6/Grammar.nqp line 441 > > > exit > Could not find Grammar::Generative in: > C:\Users\yhluc00\AppData\Roaming\.perl6\2016.01.1 > C:\rakudo\share\perl6\site > C:\rakudo\share\perl6\vendor > C:\rakudo\share\perl6 > CompUnit::Repository::AbsolutePath<109900832> > CompUnit::Repository::NQP<104242840> > CompUnit::Repository::Perl5<104242880> > in any load_module at src/Perl6/World.nqp line 978 > in any do_pragma_or_load_module at src/Perl6/World.nqp line 909 > in any loading_and_symbol_setup at src/Perl6/World.nqp line 389 > in any comp_unit at src/Perl6/Grammar.nqp line 1138 > in any TOP at src/Perl6/Grammar.nqp line 441 > > > # Can't exit! >