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

require ‘’ suggests ‘.’ but that makes no sense (require ‘’) #6588

Closed
p6rt opened this issue Oct 9, 2017 · 2 comments · Fixed by rakudo/rakudo#4146
Closed

require ‘’ suggests ‘.’ but that makes no sense (require ‘’) #6588

p6rt opened this issue Oct 9, 2017 · 2 comments · Fixed by rakudo/rakudo#4146
Labels
LTA Less Than Awesome; typically an error message that could be better

Comments

@p6rt
Copy link

p6rt commented Oct 9, 2017

Migrated from rt.perl.org#132250 (status was 'new')

Searchable as RT132250$

@p6rt
Copy link
Author

p6rt commented Oct 9, 2017

From @AlexDaniel

Code​:
require ""

Result​:
Must specify something as a path​: did you mean '.' for the current directory?
  in block <unit> at -e line 1

I don't think you can require a directory�

The error message comes from here https://github.com/rakudo/rakudo/blob/d565ded0292813582a285835b4a388279ca8c6a3/src/core/IO/Path.pm#L15
and has nothing to do with ï½¢requireï½£.

@p6rt p6rt added the LTA Less Than Awesome; typically an error message that could be better label Jan 5, 2020
@JJ
Copy link

JJ commented Dec 30, 2020

I'm not totally sure it makes sense for any kind of file, either.

say ("").IO # Must specify something as a path: did you mean '.' for the current directory?

JJ added a commit to rakudo/rakudo that referenced this issue Dec 30, 2020
Also DRY by putting it into a constant. Closes Raku/old-issue-tracker#6588 when accepted.
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants