Skip to content
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

Combining -I, -M and REPL makes it unusable #5171

Closed
p6rt opened this issue Mar 12, 2016 · 4 comments
Closed

Combining -I, -M and REPL makes it unusable #5171

p6rt opened this issue Mar 12, 2016 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Mar 12, 2016

Migrated from rt.perl.org#127695 (status was 'resolved')

Searchable as RT127695$

@p6rt
Copy link
Author

p6rt commented Mar 12, 2016

From spam-bitcard@yary.ack.org

Combining -I, -M and the REPL gives an error with any attempted command, can't even exit. In the example below, I start up the REPL using -I and -M to load an existing module. The REPL can't find it, complains that it can't find it on each line, and then does not execute the given command. Which means, cannot even exit from the REPL by typing "exit," have to kill the moar process!

  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

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

From @zoffixznet

There are actually two issues here​:

1) -I doesn't work with REPL​:
  It's fixed now. Tests added in Raku/roast@cf752f70df

2) If -M module is not found, you get the LTA output in REPL and the inability to use exit.
  That's still present. I opened it in a separate ticket​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=128595

Thanks for the report.

Cheers,
ZZ

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jul 10, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jul 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant