Navigation Menu

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

Certain Exceptions Crash REPL #5399

Closed
p6rt opened this issue Jun 23, 2016 · 5 comments
Closed

Certain Exceptions Crash REPL #5399

p6rt opened this issue Jun 23, 2016 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Jun 23, 2016

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

Searchable as RT128470$

@p6rt
Copy link
Author

p6rt commented Jun 23, 2016

From @zoffixznet

Hi,

I've tracked this issue to this commit​: rakudo/rakudo@6b93592

If you try running this piece of code in REPL, it'll exit the REPL after printing the error​:

[1..99].map​:{[$_%%5&&'fizz', $_%%3&&'buzz'].grep​:Str}

Here's the error​:

zoffix@​VirtualBox​:~/CPANPRC/rakudo$ ./perl6-m
To exit type 'exit' or '^D'
You may want to `panda install Readline` or `panda install Linenoise` or use rlwrap for a line editor

[1..99].map​:{[$_%%5&&'fizz', $_%%3&&'buzz'].grep​:Str}
===SORRY!===
Cannot resolve caller grep(Array​: ); none of these signatures match​:
  ($​: Bool​:D $t, *%_)
  ($​: Mu $t, *%_)
zoffix@​VirtualBox​:~/CPANPRC/rakudo$

The issue doesn't happen with every exception and I wasn't able to golf the above code.

@p6rt
Copy link
Author

p6rt commented Jun 30, 2016

From @awwaiid

This is resolved with rakudo/rakudo#799 (not yet merged).

Basically this ended up not computing until PRINT time instead of at EVAL time, so didn't get caught by the existing exception handling. I moved the exception handling out to catch it all.

On Thu Jun 23 15​:24​:49 2016, cpan@​zoffix.com wrote​:

Hi,

I've tracked this issue to this commit​:
rakudo/rakudo@6b93592

If you try running this piece of code in REPL, it'll exit the REPL
after printing the error​:

[1..99].map​:{[$_%%5&&'fizz', $_%%3&&'buzz'].grep​:Str}

Here's the error​:

zoffix@​VirtualBox​:~/CPANPRC/rakudo$ ./perl6-m
To exit type 'exit' or '^D'
You may want to `panda install Readline` or `panda install Linenoise`
or use rlwrap for a line editor

[1..99].map​:{[$_%%5&&'fizz', $_%%3&&'buzz'].grep​:Str}
===SORRY!===
Cannot resolve caller grep(Array​: ); none of these signatures match​:
($​: Bool​:D $t, *%_)
($​: Mu $t, *%_)
zoffix@​VirtualBox​:~/CPANPRC/rakudo$

The issue doesn't happen with every exception and I wasn't able to
golf the above code.

@p6rt
Copy link
Author

p6rt commented Jun 30, 2016

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

@p6rt
Copy link
Author

p6rt commented Jul 8, 2016

From @zoffixznet

Tests added​: Raku/roast@d9781be0bd

@p6rt
Copy link
Author

p6rt commented Jul 8, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant