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 'is' on a package declaration in Rakudo #2939

Open
p6rt opened this issue Oct 19, 2012 · 10 comments
Open

LTA error message when doing 'is' on a package declaration in Rakudo #2939

p6rt opened this issue Oct 19, 2012 · 10 comments
Labels
Bug

Comments

@p6rt
Copy link

@p6rt p6rt commented Oct 19, 2012

Migrated from rt.perl.org#115364 (status was 'open')

Searchable as RT115364$

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 19, 2012

From @masak

<masak> r​: package X is Associative { }
<p6eval> rakudo d171b9​: OUTPUT«===SORRY!===␤Method 'add_parent' not
found for invocant of class 'Perl6​::Metamodel​::PackageHOW'␤at
/tmp/mq69N3UynC​:1␤»
<masak> heh.
* masak submits rakudobug
<masak> the MOP and packages are not the best of friends, it seems.
<jnthn> The fix is to check for an add_parent method and whine if it
ain't there.
<masak> right.
<masak> agree.

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 19, 2012

From 1parrota@gmail.com

If the same sort of problem, (in this case "LTA Error Message"), keeps
showing up. maybe it would be better to rethink the mechanism, rather
than patch each individual case?

(As an ignorant kibitzer, I may well have missed the point.)

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 19, 2012

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

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 19, 2012

From @geekosaur

On Fri, Oct 19, 2012 at 3​:59 PM, Parrot Raiser <1parrota@​gmail.com> wrote​:

If the same sort of problem, (in this case "LTA Error Message"), keeps
showing up. maybe it would be better to rethink the mechanism, rather
than patch each individual case?

(As an ignorant kibitzer, I may well have missed the point.)

"LTA" is not a mechanism. It means "less than awesome"; the point is that
we want error messages that make actual sense to the user instead of
reflecting internals the user should normally not care about.

--
brandon s allbery kf8nh sine nomine associates
allbery.b@​gmail.com ballbery@​sinenomine.net
unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 19, 2012

From 1parrota@gmail.com

"LTA" is not a mechanism. It means "less than awesome"; the point is that
we want error messages that make actual sense to the user

Understood, (though I thought the "A" was for "Adequate").

I meant the process of identifying errors and generating messages.
(Using "mechanism" as a generic classification.)

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 19, 2012

From @geekosaur

On Fri, Oct 19, 2012 at 4​:46 PM, Parrot Raiser <1parrota@​gmail.com> wrote​:

I meant the process of identifying errors and generating messages.
(Using "mechanism" as a generic classification.)

That tends to come from people actually trying to use perl6 for something
new, which usually comes with a slew of "oh hey...". Although I think at
the moment it's just diakopter playing human fuzzer :)

--
brandon s allbery kf8nh sine nomine associates
allbery.b@​gmail.com ballbery@​sinenomine.net
unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

@p6rt
Copy link
Author

@p6rt p6rt commented Oct 20, 2012

From @moritz

On 10/19/2012 09​:59 PM, Parrot Raiser wrote​:

If the same sort of problem, (in this case "LTA Error Message"), keeps
showing up. maybe it would be better to rethink the mechanism, rather
than patch each individual case?

So how could a rethinking of the error detection mechanism look like?

Cheers,
Moritz

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 15, 2015

From @skids

Behavor change​:

$ perl -e 'package X is Associative { }; X.WHAT.say; say X ~~ Associative'
(X)
False

@p6rt
Copy link
Author

@p6rt p6rt commented Sep 15, 2015

From @skids

On Mon Sep 14 20​:17​:00 2015, bri@​abrij.org wrote​:

Behavor change​:

$ perl -e 'package X is Associative { }; X.WHAT.say; say X ~~ Associative'
(X)
False

Oh, and that's just because X is ... well, X​:

$ perl6 -e 'package Y is Associative { }'
===SORRY!=== Error while compiling -e
Method 'add_parent' not found for invocant of class 'Perl6​::Metamodel​::PackageHOW'
at -e​:1

@p6rt
Copy link
Author

@p6rt p6rt commented Dec 2, 2017

From @AlexDaniel

Still reproducible (2017.11, HEAD(5929887)).

The issue with X was a regression that was resolved in RT#​125689, so right now even the original snippet shows the problem.

On 2015-09-14 20​:18​:54, bri@​abrij.org wrote​:

On Mon Sep 14 20​:17​:00 2015, bri@​abrij.org wrote​:

Behavor change​:

$ perl -e 'package X is Associative { }; X.WHAT.say; say X ~~
Associative'
(X)
False

Oh, and that's just because X is ... well, X​:

$ perl6 -e 'package Y is Associative { }'
===SORRY!=== Error while compiling -e
Method 'add_parent' not found for invocant of class
'Perl6​::Metamodel​::PackageHOW'
at -e​:1

@p6rt p6rt added the Bug 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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.