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

'die' inside of a macro doesn't produce a sensible error message in Rakudo #2951

Closed
p6rt opened this issue Oct 27, 2012 · 9 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Oct 27, 2012

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

Searchable as RT115504$

@p6rt
Copy link
Author

p6rt commented Oct 27, 2012

From @masak

<diakopter> r​: macro marco { die 1 }; say marco
<p6eval> rakudo 6859fb​: OUTPUT«===SORRY!===␤Method 'SET_FILE_LINE' not
found for invocant of class 'X​::AdHoc'␤»
<diakopter> masak​: SET_FILE_LINE error
<moritz> I can try to investigate that
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Nov 4, 2012

From @masak

<masak> r​: macro foo { die "OH NOES" }; foo
<p6eval> rakudo 64208d​: OUTPUT«===SORRY!===␤Method 'SET_FILE_LINE' not
found for invocant of class 'X​::AdHoc'␤»
<masak> r​: macro foo { die }; foo
<p6eval> rakudo 64208d​: OUTPUT«===SORRY!===␤Method 'SET_FILE_LINE' not
found for invocant of class 'X​::AdHoc'␤»
<masak> yeah, that should work.
* masak submits rakudobug

@p6rt
Copy link
Author

p6rt commented Nov 5, 2012

From @jnthn

Dupe of #​115504.

@p6rt
Copy link
Author

p6rt commented Nov 5, 2012

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

@p6rt
Copy link
Author

p6rt commented Nov 5, 2012

@jnthn - Status changed from 'open' to 'rejected'

@p6rt
Copy link
Author

p6rt commented Nov 5, 2012

From @jnthn

On Sat Oct 27 09​:29​:25 2012, masak wrote​:

<diakopter> r​: macro marco { die 1 }; say marco
<p6eval> rakudo 6859fb​: OUTPUT«===SORRY!===␤Method 'SET_FILE_LINE' not
found for invocant of class 'X​::AdHoc'␤»
<diakopter> masak​: SET_FILE_LINE error
<moritz> I can try to investigate that
* masak submits rakudobug

Fixed​:

perl6 -e "macro marco { die 1 }; say marco"
===SORRY!===
1

Tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Nov 5, 2012

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

@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

From @coke

On Mon Nov 05 14​:07​:12 2012, jnthn@​jnthn.net wrote​:

On Sat Oct 27 09​:29​:25 2012, masak wrote​:

<diakopter> r​: macro marco { die 1 }; say marco
<p6eval> rakudo 6859fb​: OUTPUT«===SORRY!===␤Method 'SET_FILE_LINE' not
found for invocant of class 'X​::AdHoc'␤»
<diakopter> masak​: SET_FILE_LINE error
<moritz> I can try to investigate that
* masak submits rakudobug

Fixed​:

perl6 -e "macro marco { die 1 }; say marco"
===SORRY!===
1

Tagging testneeded.

/jnthn

Test added to S06-macros/errors.t; masak++

--
Will "Coke" Coleda

@p6rt p6rt closed this as completed Nov 14, 2012
@p6rt
Copy link
Author

p6rt commented Nov 14, 2012

@coke - 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