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
isfile() now throws an error on Windows #26685
Comments
This is kind of weird; Is there some kind of "win32 API version" that we're targeting that is causing this difference? We could, of course, add |
This might have been changed here: libuv/libuv#1088 |
See JuliaLang/julia#26685. Uses the workaround from JuliaPackaging#56.
Thanks @jebej, that is indeed the source of the issue. |
This fixes #26685, where libuv decided to throw `UV_EINVAL` on windows for invalid-filepaths such as `foo??` or `http://google.com`, instead of returning `UV_ENOENT` as they were previously [0]. This causes windows to throw errors on calls such as `isfile("http://google.com")`, whereas other platforms simply return `false`. This change simply ignores `UV_EINVAL` alongside the other "allowed failure" error codes. [0] libuv/libuv#1088
This fixes #26685, where libuv decided to throw `UV_EINVAL` on windows for invalid-filepaths such as `foo??` or `http://google.com`, instead of returning `UV_ENOENT` as they were previously [0]. This causes windows to throw errors on calls such as `isfile("http://google.com")`, whereas other platforms simply return `false`. This change simply ignores `UV_EINVAL` alongside the other "allowed failure" error codes. [0] libuv/libuv#1088
This fixes #26685, where libuv decided to throw `UV_EINVAL` on windows for invalid-filepaths such as `foo??` or `http://google.com`, instead of returning `UV_ENOENT` as they were previously [0]. This causes windows to throw errors on calls such as `isfile("http://google.com")`, whereas other platforms simply return `false`. This change simply ignores `UV_EINVAL` alongside the other "allowed failure" error codes. [0] libuv/libuv#1088
FYI libuv/libuv#2375 and libuv/libuv#2601 |
On Windows,
isfile()
now throws an error when given an "invalid argument".On 0.6:
On 0.7:
The text was updated successfully, but these errors were encountered: