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

Null PMC access when matching against rule in nonexistent grammar in Rakudo #725

Closed
p6rt opened this issue Feb 25, 2009 · 9 comments
Closed

Comments

@p6rt
Copy link

p6rt commented Feb 25, 2009

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

Searchable as RT63466$

@p6rt
Copy link
Author

p6rt commented Feb 25, 2009

From @masak

$ perl6 -e '"foo" ~~ /<B​::TOP>/'
Null PMC access in get_string()
[...]

Whenever there's a Null PMC access, I don't have to provide reasons.
:) But it seems to me that better error messages can be provided here,
something along the lines of "the grammar B was not found".

@p6rt
Copy link
Author

p6rt commented Jul 24, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in b/t/spec/S05-grammar/polymorphism.t

@p6rt
Copy link
Author

p6rt commented Jul 24, 2009

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

@p6rt
Copy link
Author

p6rt commented Jun 30, 2010

From @bbkr

On Kiev build​:

$ perl6 -e '"foo" ~~ /<B​::TOP>/'
===SORRY!===
regex assertion not terminated by angle bracket at line 1, near "​::TOP>/"

@p6rt
Copy link
Author

p6rt commented Sep 9, 2011

From @bbkr

NOM

bbkr​:nom bbkr$ ./perl6 -e '"foo" ~~ /<B​::TOP>/'
===SORRY!===
regex assertion not terminated by angle bracket at line 1, near "​::TOP>/"

@p6rt
Copy link
Author

p6rt commented Jan 11, 2012

From @coke

On Fri Sep 09 09​:53​:10 2011, bbkr wrote​:

NOM

bbkr​:nom bbkr$ ./perl6 -e '"foo" ~~ /<B​::TOP>/'
===SORRY!===
regex assertion not terminated by angle bracket at line 1, near "​::TOP>/"

20​:26 < [Coke]> rakudo​: "foo" ~~ /<B​::TOP>/
20​:26 <+p6eval> rakudo 38165a​: OUTPUT«Method 'B' not found for invocant of
  class 'Cursor'␤ in regex <anon> at /tmp/A3AivIfbMB​:1␤ in
  method ACCEPTS at src/gen/CORE.setting​:7260␤ in block <anon>
  at /tmp/A3AivIfbMB​:1␤ in <anon> at /tmp/A3AivIfbMB​:1␤»

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 30, 2012

From @coke

On Wed Feb 25 01​:53​:25 2009, masak wrote​:

$ perl6 -e '"foo" ~~ /<B​::TOP>/'
Null PMC access in get_string()
[...]

Whenever there's a Null PMC access, I don't have to provide reasons.
:) But it seems to me that better error messages can be provided here,
something along the lines of "the grammar B was not found".

This now errors with

08​:50 < [Coke]> rakudo​: "foo" ~~ /<B​::TOP>/
08​:50 <+p6eval> rakudo 9719f7​: OUTPUT«===SORRY!===␤Could not locate
  compile-time value for symbol B␤»

That seems closable with tests.
--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 1, 2012

From @moritz

The test from t/spec/S05-grammar/polymorphism.t passes, so closing ticket.

@p6rt
Copy link
Author

p6rt commented Feb 1, 2012

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

@p6rt p6rt closed this as completed Feb 1, 2012
@p6rt p6rt added the testneeded label Jan 5, 2020
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