Skip Menu |
Report information
Id: 114124
Status: open
Priority: 0/
Queue: perl6

Owner: Nobody
Requestors: pawel.pabian [at] implix.com
Cc:
AdminCc:

Severity: (no value)
Tag: (no value)
Platform: (no value)
Patch Status: (no value)
VM: (no value)



Subject: open () error message is LTA
Date: Fri, 13 Jul 2012 14:00:04 +0200
To: rakudobug [...] perl.org
From: Paweł Pabian <pawel.pabian [...] implix.com>
Download (untitled) / with headers
text/plain 527b
I've made this stupid mistake and was unable to find bug (space between bracket and open) due to misleading error message.

$ perl6 -e 'my $f = open ("logo_32x32.png", :bin); say $f.read(1e5).bytes; $f.close;'
This type cannot unbox to a native string

moritz @ 1:54
still the error is LTA
it should eithe constrain the type to Str, or should coerce to it

tadzik @ 1:55
the first thing we ever put into Perl::Critic is checking for things like this
subcall (foo); "please write me as subcall((foo)) to not confuse everybody"

RT-Send-CC: perl6-compiler [...] perl.org
Download (untitled) / with headers
text/plain 968b
On Fri Jul 13 05:00:25 2012, pawel.pabian@implix.com wrote: Show quoted text
> I've made this stupid mistake and was unable to find bug (space > between bracket and open) due to misleading error message. > > $ perl6 -e 'my $f = open ("logo_32x32.png", :bin); say > $f.read(1e5).bytes; $f.close;' > This type cannot unbox to a native string > > moritz @ 1:54 > still the error is LTA > it should eithe constrain the type to Str, or should coerce to it > > tadzik @ 1:55 > the first thing we ever put into Perl::Critic is checking for things > like this > subcall (foo); "please write me as subcall((foo)) to not confuse > everybody"
Behavior has changed: $ ./perl6 -e 'my $f = open ("./perl6", :bin); say $f.read(1e5).bytes; $f.close;' Failed to open file /Users/coke/sandbox/rakudo/perl6 bin True: no such file or directory in block <unit> at -e:1 $ ./perl6 --version This is perl6 version 2015.06-217-g3776723 built on MoarVM version 2015.06-48-g017d184 -- Will "Coke" Coleda
Download (untitled) / with headers
text/plain 165b
Message still looks fine with 'This is Rakudo version 2017.09-348-g830084430 built on MoarVM version 2017.09.1-575-gd4e230a69' perhaps this ticket should be closed.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

For issues related to this RT instance (aka "perlbug"), please contact perlbug-admin at perl.org