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

The PIR file isn't correctly generated if the precompilation emits a warning in Rakudo #1412

Closed
p6rt opened this issue Nov 25, 2009 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Nov 25, 2009

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

Searchable as RT70826$

@p6rt
Copy link
Author

p6rt commented Nov 25, 2009

From @masak

$ cat test.p6
my $var;
my $var

$ perl6 --target=pir --output=test.pir test.p6
Redeclaration of variable $var

$ cat test.pir
1

$ perl6 --target=past test.p6
Redeclaration of variable $var
"past" => 1

<lisppaste3> masak pasted "jnthn​: ever seen anything like this?" at
http://paste.lisp.org/display/91118
<jnthn> masak​: No.
<jnthn> That looks...screwed up.
<moritz_> masak​: what's the return status of the compilation?
<moritz_> echo $?
<masak> moritz_​: 0
<jnthn> masak​: Does --target=past give anything interesting?
<masak> jnthn​: let me check.
<jnthn> masak​: A dupe var causes it?!
<masak> jnthn​: uh huh.
<jnthn> 'bbq!
<masak> this needs fixing.
<jnthn> Well, yes.
<jnthn> So do the other n-hundred tickets in RT.
<jnthn> This one certainly ranks high on wtf factor though.
* masak submits rakudobug
<frettled> «Results 1 - 10 of about 26,500 for "masak submits
rakudobug". (0.38 seconds)»
<masak> frettled​: lol

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

From @coke

On Wed Nov 25 15​:16​:33 2009, masak wrote​:

$ cat test.p6
my $var;
my $var

$ perl6 --target=pir --output=test.pir test.p6
Redeclaration of variable $var

$ cat test.pir
1

$ perl6 --target=past test.p6
Redeclaration of variable $var
"past" => 1

<lisppaste3> masak pasted "jnthn​: ever seen anything like this?" at
http://paste.lisp.org/display/91118
<jnthn> masak​: No.
<jnthn> That looks...screwed up.
<moritz_> masak​: what's the return status of the compilation?
<moritz_> echo $?
<masak> moritz_​: 0
<jnthn> masak​: Does --target=past give anything interesting?
<masak> jnthn​: let me check.
<jnthn> masak​: A dupe var causes it?!
<masak> jnthn​: uh huh.
<jnthn> 'bbq!
<masak> this needs fixing.
<jnthn> Well, yes.
<jnthn> So do the other n-hundred tickets in RT.
<jnthn> This one certainly ranks high on wtf factor though.
* masak submits rakudobug
<frettled> «Results 1 - 10 of about 26,500 for "masak submits
rakudobug". (0.38 seconds)»
<masak> frettled​: lol

This works as you'd expect now​:

$ cat foo.p6
my $var;
my $var
$ ./perl6 --target=pir --output=foo.pir foo.p6
===SORRY!===
Redeclaration of symbol $var at line 2, near "\n"
$ cat foo.pir
cat​: foo.pir​: No such file or directory

assigning to moritz for testing.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jul 28, 2010

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

@p6rt
Copy link
Author

p6rt commented Aug 8, 2010

From @moritz

Since --target=pir is not spec, I'm closing the ticket without test
coverage.

@p6rt
Copy link
Author

p6rt commented Aug 8, 2010

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

@p6rt p6rt closed this as completed Aug 8, 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