-
Notifications
You must be signed in to change notification settings - Fork 93
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
Windows - Symlink Issues #389
Comments
Good catch. We should definitely add this to our documentation. |
Is it possible to remove this limitation? Is this only to allow the standard library to be linked? |
Ya, running through this flow and debugging with @ulrikstrid and @jaredly - I think it would be better to remove this limitation. The A few ideas of dealing with this:
|
PR #540 implements the error message solution. We should still continue to pursue the long term solution. |
I have developer mode enabled. According to https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/ this allows sym link without privilege escalation, yet I am getting this error message. According to the linked page, you should also check |
We currently use Another point is the fact that we will need to pass a new flag - Once we figured these two out, I think it should be possible to support running esy without elevation. It would require a new version of ocaml, though :( |
Esy itself doesn't critically need symlinks. Tarring/untarring of sources are a bigger issue. For instance, (pasting logs from slow-tests)
|
So my company does give us an windows image to enable developer mode. But I do have Admin privileges. Right now, I have to run VSCODE as an admin, and then run esy from the elevated terminal. I am getting stuck here: esy-ocaml/hello-reason#62 it would be nice if there is progress on this: |
I'm happy to say that ocaml 4.12 will hopefully not require elevation anymore when developer mode is enabled. What do you think? |
@manuhornung I'm considering (as suggested by Bryan) borrowing the C stub from you PR so that we dont have to wait for 4.12. What do you think? We can update the instructions right away then. |
Oh sure, feel free to copy it downstream for the time being. I won't find the time to focus on that since I'll be working on the hinting / antialias issue and the conceptual work for a new component API, but I'll be happy if you want to take this over! |
Came across this issue myself when trying to run |
not trying to be a prick (I don't know enough for that) but... how come https://pnpm.js.org/ has no problem with symlinks? |
@ruifortes to answer your question literally: I would assume that the code behind pnpm already builds on the newer Windows APIs which is why there are no issues there. We worked towards upgrading to those in OCaml 4.12 too. The good news is that OCaml 4.12 has been released a month ago and we could now test if the issues are fixed and change the error message accordingly |
Even when developer mode is enabled, I got the error 😢
|
@ahmadrasyidsalim yeah that's because esy was not built using ocaml@4.12.x |
and there is no way to install Ocaml on windows.. I tried for hours.. so no way to build it on windows. |
@alminisl you can build esy using esy, and that's what we do on the CI. |
will try that, thanks |
Super nice, thanks for taking care of this!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#389 (comment)>, or unsubscribe
<https://github.com/notifications/unsubscribe-
auth/ABCOXPUQ5BJHOI2QV4ESLNTTKYDOZANCNFSM4FRIRKCA>.
|
Normally only administrators can create symlinks on Windows unless you enable Developer Mode on Windows 10.
https://blogs.windows.com/buildingapps/2016/12/02/symlinks-windows-10/
The text was updated successfully, but these errors were encountered: