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

LTA error message when doing X[X] in Rakudo #2945

Closed
p6rt opened this issue Oct 21, 2012 · 5 comments
Closed

LTA error message when doing X[X] in Rakudo #2945

p6rt opened this issue Oct 21, 2012 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Oct 21, 2012

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

Searchable as RT115398$

@p6rt
Copy link
Author

p6rt commented Oct 21, 2012

From @masak

<masak> r​: X[X]
<p6eval> rakudo e765c9​: OUTPUT«===SORRY!===␤Method 'parameterize' not
found for invocant of class 'Perl6​::Metamodel​::PackageHOW'␤»
* masak submits rakudobug

That doesn't feel like an error message that should show up in that situation.

<masak> std​: X[X]
<p6eval> std 64edd1c​: OUTPUT«===SORRY!===␤Undeclared name​:␤ 'X'
used at line 1,1␤Check failed␤FAILED 00​:00 42m␤»

Something like this would be better.

Courtesy of diakopter++.

@p6rt
Copy link
Author

p6rt commented Oct 21, 2012

From @diakopter

On Sun Oct 21 02​:43​:22 2012, masak wrote​:

<masak> r​: X[X]
<p6eval> rakudo e765c9​: OUTPUT«===SORRY!===␤Method 'parameterize' not
found for invocant of class 'Perl6​::Metamodel​::PackageHOW'␤»
* masak submits rakudobug

That doesn't feel like an error message that should show up in that
situation.

<masak> std​: X[X]
<p6eval> std 64edd1c​: OUTPUT«===SORRY!===␤Undeclared name​:␤ 'X'
used at line 1,1␤Check failed␤FAILED 00​:00 42m␤»

Something like this would be better.

Courtesy of diakopter++.

but X is declared; it's just not parameterizable.

@p6rt
Copy link
Author

p6rt commented Oct 21, 2012

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

@p6rt
Copy link
Author

p6rt commented Jul 15, 2015

From @jnthn

On Sun Oct 21 10​:49​:32 2012, diakopter wrote​:

On Sun Oct 21 02​:43​:22 2012, masak wrote​:

<masak> r​: X[X]
<p6eval> rakudo e765c9​: OUTPUT«===SORRY!===␤Method 'parameterize' not
found for invocant of class 'Perl6​::Metamodel​::PackageHOW'␤»
* masak submits rakudobug

That doesn't feel like an error message that should show up in that
situation.

<masak> std​: X[X]
<p6eval> std 64edd1c​: OUTPUT«===SORRY!===␤Undeclared name​:␤ 'X'
used at line 1,1␤Check failed␤FAILED 00​:00 42m␤»

Something like this would be better.

Courtesy of diakopter++.

but X is declared; it's just not parameterizable.

Indeed. Now​:

$ perl6-m -e "X[X]"
===SORRY!=== Error while compiling -e
X cannot be parameterized
at -e​:1
------> X[X]<HERE><EOL>

Tests in S32-misc/exceptions.t.

@p6rt
Copy link
Author

p6rt commented Jul 15, 2015

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