-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
realpath() and macOS Catalina #33545
Comments
Works fine for me. |
Can reproduce on Julia v1.2, but works fine on v1.3 and a 5-day-old nightly. |
i ran the Julia 1.2 tests - the ones with
|
I think this is caused by the new security features introduced in Catatonia. If you open System Preferences>Privacy>Full Disk Access, and add the Julia application to the list of ‘approved’ apps, these start to work again. Might be wrong... 😀 |
Adding Julia app and the bin to the approved apps list seems to work, but it seems like this issue also persists when re-running this function multiple times in a row really quickly.
And it still seems really unreliable. Works maybe 1/4 of the time for me, and usually after letting the function "cool down" for a few seconds which is not ideal. |
I don't know whether to laugh or cry. WTF, Apple? |
Building from source also doesn't seem to fix it.
More like pull my hair out... |
Also this is all with Julia 1.1.1, but I've had similar issues with 1.2. |
Maybe this explains why I've heard it being called macOS 10.15 Vista https://twitter.com/tylerhall/status/1181324733893287938 |
Definitely has to do with the new privacy stuff. I'm just happy I have a backup on Mojave and a Linux server to actually run experiments... |
As with @dkarrasch the 1.3 release candidate works for me. I'm not sure what the difference between 1.1, 1.2, and 1.3. But I had not installed 1.3 before in Mojave, but that would be really odd if it mattered. |
@cormullion's fix works for me. Thanks!
|
This seems to mean that |
Maybe backporting #33116 would fix this on Julia 1.2? |
This function seems to fix the issue in 1.1.1 just from implementing in the repl. So a backport should fix the issue. |
That's all rather nonsensical then—that commit is mostly NFCI and just removes some platform specific branches by utilizing the ones already in libuv. |
Didn't help me. |
Turns out that "realpath" on macOS gets sometimes renamed to "realpath$DARWIN_EXTSN" (aka _DARWIN_BETTER_REALPATH), so switching to libuv would actually introduce functional changes in behavior.
Though those changes aren't entirely new (https://github.com/unofficial-opensource-apple/Libc/blob/master/stdlib/FreeBSD/realpath.c from 6 years ago was 10.9). |
Fixed by #33116 |
On last year's macOS (Mojave), I can do this:
and get a
31-element Array{String,1}:
.On this year's macOS (Catalina), it goes wrong:
I'm curious if anyone else can reproduce this, or is it just a problem for me... :)
Edit: Julia 1.2. It’s fine on version 1.1.
The text was updated successfully, but these errors were encountered: