Skip Menu |
Report information
Id: 115364
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: masak <cmasak [at] gmail.com>
Cc:
AdminCc:

Severity: (no value)
Tag: Bug
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: [BUG] LTA error message when doing 'is' on a package declaration in Rakudo
Date: Fri, 19 Oct 2012 21:36:47 +0200
To: rakudobug [...] perl.org
From: Carl Mäsak <cmasak [...] gmail.com>
Download (untitled) / with headers
text/plain 417b
<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.
Subject: Re: [perl #115364] [BUG] LTA error message when doing 'is' on a package declaration in Rakudo
Date: Fri, 19 Oct 2012 15:59:47 -0400
To: perl6-compiler [...] perl.org
From: Parrot Raiser <1parrota [...] gmail.com>
Download (untitled) / with headers
text/plain 237b
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.)
CC: perl6-compiler [...] perl.org
Subject: Re: [perl #115364] [BUG] LTA error message when doing 'is' on a package declaration in Rakudo
Date: Fri, 19 Oct 2012 16:05:03 -0400
To: Parrot Raiser <1parrota [...] gmail.com>
From: Brandon Allbery <allbery.b [...] gmail.com>
Download (untitled) / with headers
text/plain 766b
On Fri, Oct 19, 2012 at 3:59 PM, Parrot Raiser <1parrota@gmail.com> wrote: Show quoted text
> 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
CC: perl6-compiler [...] perl.org
Subject: Re: [perl #115364] [BUG] LTA error message when doing 'is' on a package declaration in Rakudo
Date: Fri, 19 Oct 2012 16:46:41 -0400
To: Brandon Allbery <allbery.b [...] gmail.com>
From: Parrot Raiser <1parrota [...] gmail.com>
Download (untitled) / with headers
text/plain 316b
Show quoted text
> "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.)
CC: perl6-compiler [...] perl.org
Subject: Re: [perl #115364] [BUG] LTA error message when doing 'is' on a package declaration in Rakudo
Date: Fri, 19 Oct 2012 16:50:04 -0400
To: Parrot Raiser <1parrota [...] gmail.com>
From: Brandon Allbery <allbery.b [...] gmail.com>
Download (untitled) / with headers
text/plain 639b
On Fri, Oct 19, 2012 at 4:46 PM, Parrot Raiser <1parrota@gmail.com> wrote: Show quoted text
> 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
Subject: Re: [perl #115364] [BUG] LTA error message when doing 'is' on a package declaration in Rakudo
Date: Sat, 20 Oct 2012 09:20:13 +0200
To: perl6-compiler [...] perl.org
From: Moritz Lenz <moritz [...] faui2k3.org>
Download (untitled) / with headers
text/plain 313b
On 10/19/2012 09:59 PM, Parrot Raiser wrote: Show quoted text
> 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
Download (untitled) / with headers
text/plain 104b
Behavor change: $ perl -e 'package X is Associative { }; X.WHAT.say; say X ~~ Associative' (X) False
Download (untitled) / with headers
text/plain 387b
On Mon Sep 14 20:17:00 2015, bri@abrij.org wrote: Show quoted text
> > 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
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:
Show quoted text
> 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




This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org