-
-
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
Julia issue with new OneDrive placeholder files in Windows Fall Creator Update #24483
Comments
This isn't a Julia issue. Files on Demand (like they had before Windows 10... it's not a new feature for them they just removed it for awhile) don't exist on your machine by default, so of course Julia will fail when you try to use them. So will MATLAB, Python, R, etc. Instead, if you want to use a file, you need explicitly open it to cause the download or, if you use this folder a lot, tell it to make that folder local. |
@ChrisRackauckas he does mention that
So it seems something else is going on |
Right, the files are locally available. I think its a issue with Julia and Windows together. |
Obvious question: can you try this in Python or R or something (to see if the same issue exists)? |
@StefanKarpinski I don't have those installed on my machine (who needs em when you got Julia 💯), but I guess I can try with R. I have used, I will update my post when I run the R/Python test. |
A good test could be to read the contents of a text file in that directory from different languages. |
OneDrive uses non-symlink NTFS "reparse points", which apparently breaks everyone's stuff (including Microsoft's stuff!). See nodejs/node#12737 (and microsoft/vscode#27285 and microsoft/WSL#1941 (comment)) Fixed by: libuv/libuv#1522 |
(one suggested work-around I saw somewhere: use a normal local folder, and symlink that from within the OneDrive ... supposedly it will be synced) |
I've encountered a similar issue with symlinks on Windows when using WSL. If I create a symlink via e: I just tried opening the link in Python and got the |
@christopher-dG thanks, that could be useful to create a regression test. Unfortunately our libuv branch has diverged a bit from upstream, but I see there are some open/recent PRs to update libuv... @ararslan @vtjnash -- is libuv/libuv#1522 included in recent updates? |
The libuv commit that we use was updated recently—does this happen on current master? If this is no longer a problem on current master then we should be okay; the libuv update is being backported to 0.6.2. Otherwise I can backport the upstream libuv change to our fork then incorporate that here. |
libuv/1522 changes are definitely not in the current libuv commit used on master. So, I wouldn't expect this to work on master either. It looks like our fork is based off of something like libuv 1.9, but upstream is at 1.16, and there have been some changes. |
Backporting to our fork (https://github.com/JuliaLang/libuv/pull/47), once that's merged I can submit a PR that will update the commit used on master here, then backport that to 0.6.2. |
@ihnorton sorry but what is libuv and how is Julia related to it? |
https://en.wikipedia.org/wiki/Libuv we use it as part of Julia |
@StefanKarpinski Do you think its a good idea to fix this for the 0.7/1.0 release? |
It's a bugfix, so it can happen at any time and be backported to affected versions |
Please reopen if still an issue. |
I am using Julia 0.6. Recently, I upgraded my computer to Fall Creator's update, which introduced Files on Demand in explorer for OneDrive. My entire julia work is on OneDrive and I have explicitly downloaded all files and enabled "Always keep on this device" for my folder.
However, opening a file in Julia REPL gives a weird error; for example, for example using "tab" to autocomplete.
As you can see I am trying to autocomplete
include("main.jl")
but it throws that error.This does not happen if using a local folder or Dropbox. It also breaks other code, for example, the
julia-lang
plugin for VS Code.Here is the similar error for
julia-lang
plugin:Here is some more info:
I laucnhed Julia from the desktop and then tried including the full path to my OneDrive file.
Basically I don't think Julia can see anything inside the new "OneDrive" folder.
The text was updated successfully, but these errors were encountered: