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

Camelia produces different error message from commandline #6310

Closed
p6rt opened this issue Jun 3, 2017 · 11 comments
Closed

Camelia produces different error message from commandline #6310

p6rt opened this issue Jun 3, 2017 · 11 comments

Comments

@p6rt
Copy link

p6rt commented Jun 3, 2017

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

Searchable as RT131492$

@p6rt
Copy link
Author

p6rt commented Jun 3, 2017

From @BenGoldberg1

On #perl6 IRC, I typed this​:

<BenGoldberg> m​: my \foo = Callable but role :​: { };
<+camelia> rakudo-moar ef9872​: OUTPUT​: «X​::Method​::NotFound exception produced no message␤ in block <unit> at <tmp> line 1␤␤»

If, at my command prompt, I type perl6 –e “my \foo = Callable but role :​: { };”
I get instead​:

No such method 'mixin' for invocant of type 'Perl6​::Metamodel​::ParametricRoleGroupHOW'
  in block <unit> at -e line 1

Including, oddly, an extra blank line after the error and before my prompt.

@p6rt
Copy link
Author

p6rt commented Jun 5, 2017

From @coke

On Fri, 02 Jun 2017 23​:29​:40 -0700, ben-goldberg@​hotmail.com wrote​:

On #perl6 IRC, I typed this​:

<BenGoldberg> m​: my \foo = Callable but role :​: { };
<+camelia> rakudo-moar ef9872​: OUTPUT​: «X​::Method​::NotFound exception
produced no message␤ in block <unit> at <tmp> line 1␤␤»

If, at my command prompt, I type perl6 –e “my \foo = Callable but role
:​: { };”
I get instead​:

No such method 'mixin' for invocant of type
'Perl6​::Metamodel​::ParametricRoleGroupHOW'
in block <unit> at -e line 1

Including, oddly, an extra blank line after the error and before my
prompt.

Please provide the version of rakudo you're running locally so we can rule out any version skew.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 5, 2017

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

@p6rt
Copy link
Author

p6rt commented Jun 5, 2017

From 1parrota@gmail.com

As a kibitzer, I tried that with "This is Rakudo version 2017.04.3
built on MoarVM version 2017.04-53-g66c6dda
implementing Perl 6.c".
and got​:

perl6 –e "my \foo = Callable but role​:: { };"
Could not open –e. Failed to stat file​: no such file or directory

while​:
perl6 -e "say 'boo'"
boo

worked just fine, as you can see.

@p6rt
Copy link
Author

p6rt commented Jun 5, 2017

From 1parrota@gmail.com

I just noticed the - was a different length, so I changed it, et voila​:
perl6 -e "my \foo = Callable but role​:: { };"
===SORRY!=== Error while compiling -e
Undeclared routine​:
  role used at line 1. Did you mean 'roll'?

On 6/5/17, Parrot Raiser <1parrota@​gmail.com> wrote​:

As a kibitzer, I tried that with "This is Rakudo version 2017.04.3
built on MoarVM version 2017.04-53-g66c6dda
implementing Perl 6.c".
and got​:

perl6 –e "my \foo = Callable but role​:: { };"
Could not open –e. Failed to stat file​: no such file or directory

while​:
perl6 -e "say 'boo'"
boo

worked just fine, as you can see.

@p6rt
Copy link
Author

p6rt commented Jun 5, 2017

From @geekosaur

On Mon, Jun 5, 2017 at 5​:32 PM, Parrot Raiser <1parrota@​gmail.com> wrote​:

perl6 –e "my \foo = Callable but role​:: { };"

Something bit you; note that you are not using "-e" but "–e" (U+2013 EN
DASH).

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

@p6rt
Copy link
Author

p6rt commented Jun 5, 2017

From 1parrota@gmail.com

Something bit you; note that you are not using "-e" but "–e" (U+2013 EN DASH).

Right, the consequence of cutting & pasting. It's interesting that the
error message on the corrected version is unlike either of the
original examples.

@p6rt
Copy link
Author

p6rt commented Jun 7, 2017

From @BenGoldberg1

On Monday, June 05, 2017 5​:05 PM, Will Coleda via RT wrote​:

On Fri, 02 Jun 2017 23​:29​:40 -0700, ben-goldberg@​hotmail.com wrote​:

On #perl6 IRC, I typed this​:

<BenGoldberg> m​: my \foo = Callable but role :​: { };
<+camelia> rakudo-moar ef9872​: OUTPUT​: «X​::Method​::NotFound exception
produced no message␤ in block <unit> at <tmp> line 1␤␤»

If, at my command prompt, I type perl6 –e “my \foo = Callable but role
:​: { };”
I get instead​:

No such method 'mixin' for invocant of type
'Perl6​::Metamodel​::ParametricRoleGroupHOW'
in block <unit> at -e line 1

Including, oddly, an extra blank line after the error and before my
prompt.

Please provide the version of rakudo you're running locally so we can rule
out any version skew.

C​:\Users\Ben (user)>perl6 -v
This is Rakudo version 2017.01 built on MoarVM version 2017.01
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Jun 8, 2017

From @coke

On Wed, 07 Jun 2017 11​:46​:03 -0700, ben-goldberg@​hotmail.com wrote​:

On Monday, June 05, 2017 5​:05 PM, Will Coleda via RT wrote​:

On Fri, 02 Jun 2017 23​:29​:40 -0700, ben-goldberg@​hotmail.com wrote​:

On #perl6 IRC, I typed this​:

<BenGoldberg> m​: my \foo = Callable but role :​: { };
<+camelia> rakudo-moar ef9872​: OUTPUT​: «X​::Method​::NotFound
exception
produced no message␤ in block <unit> at <tmp> line 1␤␤»

If, at my command prompt, I type perl6 –e “my \foo = Callable but
role
:​: { };”
I get instead​:

No such method 'mixin' for invocant of type
'Perl6​::Metamodel​::ParametricRoleGroupHOW'
in block <unit> at -e line 1

Including, oddly, an extra blank line after the error and before my
prompt.

Please provide the version of rakudo you're running locally so we can
rule
out any version skew.

C​:\Users\Ben (user)>perl6 -v
This is Rakudo version 2017.01 built on MoarVM version 2017.01
implementing Perl 6.c.

This was a temporary change​:

23​:42 < [Coke]> committable6​: 2017.01 my \foo = Callable but role :​: { };
23​:42 <+committable6> [Coke], ¦2017.01​: «No such method 'mixin' for invocant of
  type 'Perl6​::Metamodel​::ParametricRoleGroupHOW'␤ in
  block <unit> at /tmp/hYc6hABV7m line 1␤ «exit code = 1»»
23​:42 < Juerd> ugexe​: "use lib 'lib';" is in example code at
  https://docs.perl6.org/language/modules
23​:42 < [Coke]> committable6​: 2017.05 my \foo = Callable but role :​: { };
23​:42 <+committable6> [Coke], ¦2017.05​: «No such method 'mixin' for invocant of
  type 'Perl6​::Metamodel​::ParametricRoleGroupHOW'␤ in
  block <unit> at /tmp/2usM18Vu7J line 1␤ «exit code = 1»»
23​:42 < [Coke]> m​: my \foo = Callable but role :​: { };
23​:42 <+camelia> rakudo-moar f0c3bf​: OUTPUT​: «No such method 'mixin' for
  invocant of type 'Perl6​::Metamodel​::ParametricRoleGroupHOW'.
  Did you mean 'min'?␤ in block <unit> at <tmp> line 1␤␤»
23​:43 < [Coke]> committable6​: ef9872 my \foo = Callable but role :​: { };
23​:43 <+committable6> [Coke], ¦ef9872​: «X​::Method​::NotFound exception produced
  no message␤ in block <unit> at /tmp/djXVvvjcMC line 1␤
  «exit code = 1»»

Note that 2017.01, 2017.05 and f0c3fb all give the same output.

Checking the specific version you reported earlier, I see the difference.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 10, 2017

From @MasterDuke17

Fixed in NQP in Raku/nqp@c4af44b
Brought into Rakudo in rakudo/rakudo@05f3e9a
Test added in Raku/roast@4bfd6d2374

@p6rt p6rt closed this as completed Jun 10, 2017
@p6rt
Copy link
Author

p6rt commented Jun 10, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant