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

open () error message is [LTA] #2826

Open
p6rt opened this issue Jul 13, 2012 · 4 comments
Open

open () error message is [LTA] #2826

p6rt opened this issue Jul 13, 2012 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Jul 13, 2012

Migrated from rt.perl.org#114124 (status was 'open')

Searchable as RT114124$

@p6rt
Copy link
Author

p6rt commented Jul 13, 2012

From @bbkr

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"

@p6rt
Copy link
Author

p6rt commented Jul 9, 2015

From @coke

On Fri Jul 13 05​:00​:25 2012, pawel.pabian@​implix.com wrote​:

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

@p6rt
Copy link
Author

p6rt commented Jul 9, 2015

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

@p6rt
Copy link
Author

p6rt commented Oct 8, 2017

From @dogbert17

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant