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

'-'.IO.slurp crashes #6320

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

'-'.IO.slurp crashes #6320

p6rt opened this issue Jun 3, 2017 · 5 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 3, 2017

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

Searchable as RT131503$

@p6rt
Copy link
Author

p6rt commented Jun 3, 2017

From rightfold@gmail.com

'-'.IO behaves as $*IN in some cases, like expected, but crashes with
slurp. '-'.IO.spurt works as expected; writing to $*OUT. It appears also
that '-'.IO is not very well tested in roast, and it is not documented
in the API documentation of IO​::Path either, so maybe those points
should be addressed as well.

  $ perl6 --version
  This is Rakudo version 2017.04.3 built on MoarVM version
2017.04-53-g66c6dda
  implementing Perl 6.c.
  $ perl6
  To exit type 'exit' or '^D'
  > '-'.IO.slurp
  P6opaque​: no such attribute '$!PIO' in type IO​::Handle when trying
to get a value
  in block <unit> at <unknown file> line 1

@p6rt
Copy link
Author

p6rt commented Jun 4, 2017

From @MasterDuke17

On Sat, 03 Jun 2017 12​:47​:03 -0700, rightfold@​gmail.com wrote​:

'-'.IO behaves as $*IN in some cases, like expected, but crashes with
slurp. '-'.IO.spurt works as expected; writing to $*OUT. It appears also
that '-'.IO is not very well tested in roast, and it is not documented
in the API documentation of IO​::Path either, so maybe those points
should be addressed as well.

  $ perl6 \-\-version
  This is Rakudo version 2017\.04\.3 built on MoarVM version

2017.04-53-g66c6dda
implementing Perl 6.c.
$ perl6
To exit type 'exit' or '^D'
> '-'.IO.slurp
P6opaque​: no such attribute '$!PIO' in type IO​::Handle when trying
to get a value
in block <unit> at <unknown file> line 1

Some info about where different changes happened https://irclog.perlgeek.de/perl6-dev/2017-06-03#i_14680402

@p6rt
Copy link
Author

p6rt commented Jun 4, 2017

From @zoffixznet

On Sat, 03 Jun 2017 12​:47​:03 -0700, rightfold@​gmail.com wrote​:

'-'.IO behaves as $*IN in some cases, like expected, but crashes with
slurp. '-'.IO.spurt works as expected; writing to $*OUT. It appears also
that '-'.IO is not very well tested in roast, and it is not documented
in the API documentation of IO​::Path either, so maybe those points
should be addressed as well.

  $ perl6 \-\-version
  This is Rakudo version 2017\.04\.3 built on MoarVM version

2017.04-53-g66c6dda
implementing Perl 6.c.
$ perl6
To exit type 'exit' or '^D'
> '-'.IO.slurp
P6opaque​: no such attribute '$!PIO' in type IO​::Handle when trying
to get a value
in block <unit> at <unknown file> line 1

Thank you for the report. This is now fixed.

Fix​: rakudo/rakudo@90d129de8e7ae627
Test​: Raku/roast@60a7a88e479dceb902

@p6rt
Copy link
Author

p6rt commented Jun 4, 2017

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

@p6rt
Copy link
Author

p6rt commented Jun 4, 2017

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

@p6rt p6rt closed this as completed Jun 4, 2017
@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