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

Dateish.IO is Unusable #5722

Closed
p6rt opened this issue Oct 3, 2016 · 3 comments
Closed

Dateish.IO is Unusable #5722

p6rt opened this issue Oct 3, 2016 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 3, 2016

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

Searchable as RT129799$

@p6rt
Copy link
Author

p6rt commented Oct 3, 2016

From @zoffixznet

# I have the fix; filing for records

The Dateish role provides method IO that creates an IO​::Path object
from the stringified dateish thing.

However, the method expects IO​::Path to stringify the dateish, which fails​:

  <ZoffixW> m​: Date.today.IO
  <camelia> rakudo-moar 3a6cd8​: OUTPUT«Cannot resolve caller
new(IO​::Path​: Date); none of these signatures match​:␤ (IO​::Path $​:
Cool $path, :$SPEC = { ... }, :$CWD = { ... }, *%_)␤ (IO​::Path $​:
:$basename!, :$dirname = "", :$volume = "", :$SPEC = { ... }, :$CWD =
{ ... }, *%_)␤ (…»

Furthermore, even if the above issue is fixed, we'd still get LTA
undef stringification warnings when the IO is called on the Dateish
typeobject, as we'd be trying to stringify and undefined dateish.

@p6rt
Copy link
Author

p6rt commented Oct 3, 2016

From @zoffixznet

Fixed in rakudo/rakudo@6c0732146a
Tests in Raku/roast@a7fe6b6f67

On Mon Oct 03 07​:48​:33 2016, cpan@​zoffix.com wrote​:

# I have the fix; filing for records

The Dateish role provides method IO that creates an IO​::Path object
from the stringified dateish thing.

However, the method expects IO​::Path to stringify the dateish, which fails​:

 \<ZoffixW> m&#8203;: Date\.today\.IO
 \<camelia> rakudo\-moar 3a6cd8&#8203;: OUTPUT«Cannot resolve caller  

new(IO​::Path​: Date); none of these signatures match​:␤ (IO​::Path $​:
Cool $path, :$SPEC = { ... }, :$CWD = { ... }, *%_)␤ (IO​::Path $​:
:$basename!, :$dirname = "", :$volume = "", :$SPEC = { ... }, :$CWD =
{ ... }, *%_)␤ (…»

Furthermore, even if the above issue is fixed, we'd still get LTA
undef stringification warnings when the IO is called on the Dateish
typeobject, as we'd be trying to stringify and undefined dateish.

@p6rt
Copy link
Author

p6rt commented Oct 3, 2016

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

@p6rt p6rt closed this as completed Oct 3, 2016
@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