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

no information about where the error occured in Rakudo #1466

Closed
p6rt opened this issue Jan 3, 2010 · 6 comments
Closed

no information about where the error occured in Rakudo #1466

p6rt opened this issue Jan 3, 2010 · 6 comments

Comments

@p6rt
Copy link

p6rt commented Jan 3, 2010

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

Searchable as RT71814$

@p6rt
Copy link
Author

p6rt commented Jan 3, 2010

From @nkh

rakudo commit​: db84bc06990c37b93fe987dcffab4ed9bf31de92
build/PARROT_REVISION​: 43076 1.9.0

nadim@​naquadim rakudo (master)$ ./perl6 nadim_test.pl
=begin without =end at line 2, near "\nsub A() {"
in Main (file <unknown>, line <unknown>)

a simple "=begin\n" in a text file is enough

@p6rt
Copy link
Author

p6rt commented Jul 24, 2010

From @coke

On Sun Jan 03 05​:07​:50 2010, nkh wrote​:

rakudo commit​: db84bc06990c37b93fe987dcffab4ed9bf31de92
build/PARROT_REVISION​: 43076 1.9.0

nadim@​naquadim rakudo (master)$ ./perl6 nadim_test.pl
=begin without =end at line 2, near "\nsub A() {"
in Main (file <unknown>, line <unknown>)

a simple "=begin\n" in a text file is enough

━$━∫ cat foo.pl
=begin
━$━∫ ./perl6 foo.pl
===SORRY!===
=begin without matching =end at line 1, near "\n"

This looks reasonable to me (and it's more than you get from p5). What
are you expecting here?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 24, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 1, 2011

From @coke

On Sat Jul 24 15​:23​:43 2010, coke wrote​:

On Sun Jan 03 05​:07​:50 2010, nkh wrote​:

rakudo commit​: db84bc06990c37b93fe987dcffab4ed9bf31de92
build/PARROT_REVISION​: 43076 1.9.0

nadim@​naquadim rakudo (master)$ ./perl6 nadim_test.pl
=begin without =end at line 2, near "\nsub A() {"
in Main (file <unknown>, line <unknown>)

a simple "=begin\n" in a text file is enough

━$━∫ cat foo.pl
=begin
━$━∫ ./perl6 foo.pl
===SORRY!===
=begin without matching =end at line 1, near "\n"

This looks reasonable to me (and it's more than you get from p5). What
are you expecting here?

The empty begin now has an even more helpful message​:

./perl6 foo
===SORRY!===
=begin must be followed by an identifier; (did you mean "=begin pod"?)
at line 1, near "\n"

I think this is closable with tests.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Mar 2, 2012

From @moritz

Now tested in S32-exceptions/misc.t.

@p6rt
Copy link
Author

p6rt commented Mar 2, 2012

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