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

Producing output in BEGIN blocks errors out precompilation #5009

Closed
p6rt opened this issue Jan 6, 2016 · 6 comments
Closed

Producing output in BEGIN blocks errors out precompilation #5009

p6rt opened this issue Jan 6, 2016 · 6 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jan 6, 2016

Migrated from rt.perl.org#127192 (status was 'rejected')

Searchable as RT127192$

@p6rt
Copy link
Author

p6rt commented Jan 6, 2016

From @zoffixznet

See evaluated code below and the error it produces (Constraint type check failed for parameter '$precomp-id'). This does not appear if the `say` statement is removed. I also tried using `put`, producing the same error.

$ cat Foo.pm6
class Foo {
  BEGIN { say 42 };
}
$ perl6 -I. -e 'use Foo'
===SORRY!===
Constraint type check failed for parameter '$precomp-id'
$ perl6 -I. -e 'use Foo'
===SORRY!===
Failed to open file /tmp/tmp.9290Wjs0ef/.precomp/01577C41E8B9AB77E8C1E6F68F5D1DA5A4F04EE9.1452007419.50358/6E/6E428ABBFD62CCF8C57C45F9E4329CB0A420A920.deps​: no such file or directory
$ perl6 -I. -e 'use Foo'

@p6rt
Copy link
Author

p6rt commented Jan 6, 2016

From @LLFourn

see​:

https://rt.perl.org/Public/Bug/Display.html?id=127086

IMHO even if it's a WONTFIX atm we should still have at least one ticket
open to address this.

LL

On Thu, Jan 7, 2016 at 4​:22 AM Zoffix Znet <perl6-bugs-followup@​perl.org>
wrote​:

# New Ticket Created by Zoffix Znet
# Please include the string​: [perl #​127192]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127192 >

See evaluated code below and the error it produces (Constraint type check
failed for parameter '$precomp-id'). This does not appear if the `say`
statement is removed. I also tried using `put`, producing the same error.

$ cat Foo.pm6
class Foo {
BEGIN { say 42 };
}
$ perl6 -I. -e 'use Foo'
===SORRY!===
Constraint type check failed for parameter '$precomp-id'
$ perl6 -I. -e 'use Foo'
===SORRY!===
Failed to open file
/tmp/tmp.9290Wjs0ef/.precomp/01577C41E8B9AB77E8C1E6F68F5D1DA5A4F04EE9.1452007419.50358/6E/6E428ABBFD62CCF8C57C45F9E4329CB0A420A920.deps​:
no such file or directory
$ perl6 -I. -e 'use Foo'

@p6rt
Copy link
Author

p6rt commented Jan 6, 2016

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

@p6rt
Copy link
Author

p6rt commented Jan 6, 2016

From @LLFourn

(and now I see that hoelz re-opened the ticket)

On Thu, Jan 7, 2016 at 5​:03 AM Lloyd Fournier <lloyd.fourn@​gmail.com> wrote​:

see​:

https://rt.perl.org/Public/Bug/Display.html?id=127086

IMHO even if it's a WONTFIX atm we should still have at least one ticket
open to address this.

LL

On Thu, Jan 7, 2016 at 4​:22 AM Zoffix Znet <perl6-bugs-followup@​perl.org>
wrote​:

# New Ticket Created by Zoffix Znet
# Please include the string​: [perl #​127192]
# in the subject line of all future correspondence about this issue.
# <URL​: https://rt-archive.perl.org/perl6/Ticket/Display.html?id=127192 >

See evaluated code below and the error it produces (Constraint type check
failed for parameter '$precomp-id'). This does not appear if the `say`
statement is removed. I also tried using `put`, producing the same error.

$ cat Foo.pm6
class Foo {
BEGIN { say 42 };
}
$ perl6 -I. -e 'use Foo'
===SORRY!===
Constraint type check failed for parameter '$precomp-id'
$ perl6 -I. -e 'use Foo'
===SORRY!===
Failed to open file
/tmp/tmp.9290Wjs0ef/.precomp/01577C41E8B9AB77E8C1E6F68F5D1DA5A4F04EE9.1452007419.50358/6E/6E428ABBFD62CCF8C57C45F9E4329CB0A420A920.deps​:
no such file or directory
$ perl6 -I. -e 'use Foo'

@p6rt
Copy link
Author

p6rt commented Jan 7, 2016

From @zoffixznet

Right. I'm going to close this then.

@p6rt p6rt closed this as completed Jan 7, 2016
@p6rt
Copy link
Author

p6rt commented Jan 7, 2016

@zoffixznet - Status changed from 'open' to 'rejected'

@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