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

class throwing an unhandled exception in core #4242

Closed
p6rt opened this issue May 13, 2015 · 5 comments
Closed

class throwing an unhandled exception in core #4242

p6rt opened this issue May 13, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented May 13, 2015

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

Searchable as RT125181$

@p6rt
Copy link
Author

p6rt commented May 13, 2015

From @drforr

I've typoed two 'returns' modifiers in a row, and get an unhandled
exception for my troubles. The

--cut here--
perl6 --doc bug.pm6
Code object coerced to string (please use .gist or .perl to do that) at
src/Perl6/World.nqp line 2438 in any ex-handle at
src/Perl6/World.nqp​:3481

Unhandled exception​: No exception handler located for warn
  at <unknown>​:1
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:print_exception​:4294967295)
  from src/gen/m-CORE.setting​:14852
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/CORE.setting.moarvm​:<anon>​:40)
  from gen/moar/stage2/NQPHLL.nqp​:1420
(/home/jgoff/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm​:command_eval​:374)
  from src/Perl6/Compiler.nqp​:59
(/home/jgoff/.rakudobrew/moar-nom/install/share/nqp/lib/Perl6/Compiler.moarvm​:command_eval​:93)
  from gen/moar/stage2/NQPHLL.nqp​:1360
(/home/jgoff/.rakudobrew/moar-nom/install/share/nqp/lib/NQPHLL.moarvm​:command_line​:116)
  from src/gen/m-main.nqp​:39
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:MAIN​:18)
  from src/gen/m-main.nqp​:35
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:<mainline>​:197)
  from <unknown>​:1
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:<main>​:8)
  from <unknown>​:1
(/home/jgoff/.rakudobrew/moar-nom/install/share/perl6/runtime/perl6.moarvm​:<entry>​:9)
--cut here--

--cut here--
use v6;
use NativeCall;

class ReadLine {
  my constant LIB = 'libreadline.so.6';

  method get-history-tokenize( Str $str ) returns Pointer[Str] # Here's
the first 'returns'
  returns Int { # and
here's the second.
  history_tokenize( $str ) }
}
--cut here--

@p6rt
Copy link
Author

p6rt commented Aug 21, 2016

From @zoffixznet

Has been fixed per http://irclog.perlgeek.de/perl6-dev/2016-08-21#i_13062293

Tests needed

@p6rt
Copy link
Author

p6rt commented Aug 21, 2016

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

@p6rt
Copy link
Author

p6rt commented Sep 10, 2016

From @zoffixznet

Tests added Raku/roast@e1704aa629

@p6rt
Copy link
Author

p6rt commented Sep 10, 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