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

lack of semicolon at the end of a use ... statement throws internal error #2791

Closed
p6rt opened this issue Jun 16, 2012 · 6 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Jun 16, 2012

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

Searchable as RT113680$

@p6rt
Copy link
Author

p6rt commented Jun 16, 2012

From @Siddhant

(in the REPL)​:

use foo;
Could not find foo in any of​: /home/siddhant/.perl6/lib,
/home/siddhant/rakudo/install/lib/parrot/4.4.0-devel/languages/perl6/lib
use foo
Method 'ast' not found for invocant of class 'Undef'

In the latter case, I was expecting an error message similar to the
former "Could not find..."

@p6rt
Copy link
Author

p6rt commented Jun 21, 2012

From @jnthn

On Sat Jun 16 10​:05​:41 2012, sisar wrote​:

(in the REPL)​:

use foo;
Could not find foo in any of​: /home/siddhant/.perl6/lib,
/home/siddhant/rakudo/install/lib/parrot/4.4.0-devel/languages/perl6/lib
use foo
Method 'ast' not found for invocant of class 'Undef'

In the latter case, I was expecting an error message similar to the
former "Could not find..."

It was triggered by any whitespace following the "foo" in the use
statement. Mentioning this since we can test it with something like​:

eval("use ThisDoesNotExistAtAll ")

And I guess maybe a typed exception. So, tagging testneeded.

/jnthn

@p6rt
Copy link
Author

p6rt commented Jun 21, 2012

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

@p6rt
Copy link
Author

p6rt commented Sep 30, 2014

From @usev6

I added a test to S32-exceptions/misc.t with the following commit​: Raku/roast@afc4d1e

(Maybe it's a bit too specific, since it checks the exact error message.)

1 similar comment
@p6rt
Copy link
Author

p6rt commented Sep 30, 2014

From @usev6

I added a test to S32-exceptions/misc.t with the following commit​: Raku/roast@afc4d1e

(Maybe it's a bit too specific, since it checks the exact error message.)

@p6rt
Copy link
Author

p6rt commented Sep 30, 2014

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