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

error with dir #2735

Closed
p6rt opened this issue Apr 28, 2012 · 7 comments
Closed

error with dir #2735

p6rt opened this issue Apr 28, 2012 · 7 comments
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded

Comments

@p6rt
Copy link

p6rt commented Apr 28, 2012

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

Searchable as RT112662$

@p6rt
Copy link
Author

p6rt commented Apr 28, 2012

From @zhuomingliang

JimmyZ r​: dir | say #bug too ?
p6eval rakudo a25e7d​: OUTPUT«␤Method 'FLATTENABLE_LIST' not found for invocant of class 'Bool'␤ in block <anon> at /tmp/8boAQ0TDGi​:1␤␤»
jnthn LTA error.
jnthn Can fix that one.
jnthn Should be more like "Cannot flatten a Bool into an argument list"
JimmyZ std​: dir | say
p6eval std fab64fc​: OUTPUT«===SORRY!===␤Unsupported use of bare 'say'; in Perl 6 please use .say if you meant $_, or use an explicit invocant or argument at /tmp/BtEzDiPQWI line 1​:␤------> dir | say⏏<EOL>␤Check failed␤FAILED 00​:00 40m␤»
jnthn Well, also that.
jnthn But if you choose something other than say that returns a bool...
jnthn Feel free to file as LTA error, anywya.
jnthn *anyway

@p6rt
Copy link
Author

p6rt commented Nov 17, 2012

From @coke

On Sat Apr 28 05​:04​:31 2012, jimmy.zhuo@​gmail.com wrote​:

JimmyZ r​: dir | say #bug too ?
p6eval rakudo a25e7d​: OUTPUT«␤Method 'FLATTENABLE_LIST' not found for
invocant of class 'Bool'␤ in block <anon> at /tmp/8boAQ0TDGi​:1␤␤»
jnthn LTA error.
jnthn Can fix that one.
jnthn Should be more like "Cannot flatten a Bool into an argument
list"
JimmyZ std​: dir | say
p6eval std fab64fc​: OUTPUT«===SORRY!===␤Unsupported use of bare 'say';
in Perl 6 please use .say if you meant $_, or use an explicit
invocant or argument at /tmp/BtEzDiPQWI line 1​:␤------> dir |
say⏏<EOL>␤Check failed␤FAILED 00​:00 40m␤»
jnthn Well, also that.
jnthn But if you choose something other than say that returns a
bool...
jnthn Feel free to file as LTA error, anywya.
jnthn *anyway

The error seems awesomer now​:

dir | say #bug too ?

Failed to get the directory contents of 'True'​: readdir failed​: No such file or directory

dir(".") | say "a"
a

Closable with tests?

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Nov 17, 2012

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

@p6rt
Copy link
Author

p6rt commented Nov 17, 2012

From @geekosaur

On Sat, Nov 17, 2012 at 6​:27 PM, Will Coleda via RT <
perl6-bugs-followup@​perl.org> wrote​:

dir | say #bug too ?

Failed to get the directory contents of 'True'​: readdir failed​: No such
file or directory

Dare I ask what it stringified True to? What happens if the user has a
directory with that name? Granted, POSIX says it should fail if it's the
empty string... but that's only POSIX, and I'd be inclined to consider it
an accidentally safe result.

--
brandon s allbery kf8nh sine nomine associates
allbery.b@​gmail.com ballbery@​sinenomine.net
unix/linux, openafs, kerberos, infrastructure http://sinenomine.net

@p6rt
Copy link
Author

p6rt commented Sep 15, 2015

From @skids

Seems to be much better now​:

$ perl6 -e 'dir | say #b'
===SORRY!===
Argument to "say" seems to be malformed
at -e​:1
------> dir | say⏏ #b
Other potential difficulties​:
  Unsupported use of bare "say"; in Perl 6 please use .say if you meant $_, or use an explicit invocant or argument, or use &say to refer to the function as a noun
  at -e​:1
  ------> dir | say⏏ #b

$ perl6 -e 'dir | say'
===SORRY!===
Argument to "say" seems to be malformed
at -e​:1
------> dir | say⏏<EOL>
Other potential difficulties​:
  Unsupported use of bare "say"; in Perl 6 please use .say if you meant $_, or use an explicit invocant or argument, or use &say to refer to the function as a noun
  at -e​:1
  ------> dir | say⏏<EOL>

$ perl6 -e 'dir(".") | say "a"'
a
$ perl6 -e 'dir | say;'
===SORRY!=== Error while compiling -e
Unsupported use of bare "say"; in Perl 6 please use .say if you meant $_, or use an explicit invocant or argument, or use &say to refer to the function as a noun
at -e​:1
------> dir | say⏏;

@p6rt
Copy link
Author

p6rt commented Sep 2, 2016

From @zoffixznet

Tests added in Raku/roast@1c1d01eafa

@p6rt
Copy link
Author

p6rt commented Sep 2, 2016

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

@p6rt p6rt closed this as completed Sep 2, 2016
@p6rt p6rt added LTA Less Than Awesome; typically an error message that could be better testneeded labels Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTA Less Than Awesome; typically an error message that could be better testneeded
Projects
None yet
Development

No branches or pull requests

1 participant