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 a variable is used but not declared in Rakudo #2211

Closed
p6rt opened this issue Oct 6, 2010 · 7 comments
Closed

LTA error message when a variable is used but not declared in Rakudo #2211

p6rt opened this issue Oct 6, 2010 · 7 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 6, 2010

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

Searchable as RT78252$

@p6rt
Copy link
Author

p6rt commented Oct 6, 2010

From @masak

<masak> rakudo​: say $foo; { my $foo = 42 }
<p6eval> rakudo 2ee5db​: OUTPUT«===SORRY!===␤too few positional
arguments​: 2 passed, 3 (or more) expected␤»
<masak> wtf?
<masak> rakudo​: say $foo;
<p6eval> rakudo 2ee5db​: OUTPUT«===SORRY!===␤too few positional
arguments​: 2 passed, 3 (or more) expected␤»
* masak submits rakudobug
<masak> *sigh*
<masak> taking a guess, that seems to be an error that occurs during
parsing while trying to print the real error.
<masak> taking another guess, it has to do with the Parrot
String/Rakudo Str conversion not always being perfect. probably a
.trans call or something.
<TimToady> rakudo​: exit; say $foo;
<p6eval> rakudo 2ee5db​: OUTPUT«===SORRY!===␤too few positional
arguments​: 2 passed, 3 (or more) expected␤»
<masak> would be nice if someone would do a bisect on this one.

@p6rt
Copy link
Author

p6rt commented Oct 9, 2010

From @moritz

17​:55 <+p6eval> rakudo 668719​: OUTPUT«===SORRY!===␤too few positional
  arguments​: 2 passed, 3 (or more) expected␤»
17​:55 < moritz_> now that's really LTA
17​:55 < moritz_> rakudo​: sub foo($) { }; foo($x)
17​:55 <+p6eval> rakudo 668719​: OUTPUT«===SORRY!===␤too few positional
  arguments​: 2 passed, 3 (or more) expected␤»

@p6rt
Copy link
Author

p6rt commented Oct 18, 2010

From @moritz

Seems to be a problem in the backtrace printer -- without method
becktrace in src/Perl6/Compiler.pir, I get

Symbol '$foo' not predeclared in <anonymous>
current instr.​: 'perl6;PCT;HLLCompiler;panic' pc 146
(compilers/pct/src/PCT/HLLCompiler.pir​:109)
called from Sub 'perl6;PAST;Compiler;post_children' pc 2320
(compilers/pct/src/PAST/Compiler.pir​:449)
called from Sub 'perl6;PAST;Compiler;call' pc 4810
(compilers/pct/src/PAST/Compiler.pir​:1198)
...

@p6rt
Copy link
Author

p6rt commented Oct 18, 2010

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

@p6rt
Copy link
Author

p6rt commented Oct 26, 2010

From @masak

On Mon Oct 18 08​:39​:14 2010, moritz wrote​:

Seems to be a problem in the backtrace printer -- without method
becktrace in src/Perl6/Compiler.pir, I get

Symbol '$foo' not predeclared in <anonymous>
current instr.​: 'perl6;PCT;HLLCompiler;panic' pc 146
(compilers/pct/src/PCT/HLLCompiler.pir​:109)
called from Sub 'perl6;PAST;Compiler;post_children' pc 2320
(compilers/pct/src/PAST/Compiler.pir​:449)
called from Sub 'perl6;PAST;Compiler;call' pc 4810
(compilers/pct/src/PAST/Compiler.pir​:1198)
...

<masak> AH!
<masak> it only happens when I put things in a file.
<masak> not with -e
[...]
<masak> when I turn off the Perl 6 backtracer, the error is reported as occurring in
"perl6;PCT;HLLCompiler;lineof".
<masak> but, importantly, the LTA bug still persists​: "too few positional arguments​: 2 passed, 3
(or more) expected"
<masak> this seems to be counter to what moritz_++ reports in
http://rt.perl.org/rt3/Ticket/Display.html?id=78252
<masak> but on the other hand, moritz_ seems to have run with -e, so that's different too.

@p6rt
Copy link
Author

p6rt commented Oct 28, 2010

From @pmichaud

Fixed in 4796505, closing ticket.

Pm

@p6rt
Copy link
Author

p6rt commented Oct 28, 2010

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

@p6rt p6rt closed this as completed Oct 28, 2010
@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
Labels
Projects
None yet
Development

No branches or pull requests

1 participant