-
Notifications
You must be signed in to change notification settings - Fork 176
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
OCaml 5.00 compatibility #923
Comments
There is also the problem of Unix.fork on Lwt_process, which I guess could be replaced by create_process. |
@EduardoRFS Is the issue that we can't use |
@raphael-proust yes that's the issue. But that doesn't work as Lwt_process actually cannot be described on create_process because there is no way to close fd's on the child process, so this line cannot be implemented. https://github.com/ocsigen/lwt/blob/master/src/unix/lwt_process.ml#L159 And this changes behavior considerably, so likely lwt will need to implement it's own spawn in C. Like https://github.com/ocaml/ocaml/blob/trunk/otherlibs/unix/spawn.c#L31 |
If I understand correctly, I think something needs done with the |
Lwt is now OCaml.5-compatible. Closing. |
It doesn't seems to have solved my problem at least from looking at code. Lwt_process still calls Lwt_unix.fork lwt/src/unix/lwt_process.cppo.ml Line 153 in fbd4fc5
Which calls Unix.fork https://github.com/ocsigen/lwt/blob/master/src/unix/lwt_unix.cppo.ml#L2307 Which then will fail at |
@EduardoRFS I have opened a separate issue to track this problem. |
OCaml 5.00 (at the moment
trunk
) has removed lots of functions that were deprecated includingString.uppercase
that is used in the unix library's discover executable.lwt/src/unix/config/discover.ml
Line 67 in 1b123ff
This needs fixed so lwt can be installed with OCaml 5.00. I have a fix here which aimed to keep things working on
4.02
(I thinkuppercase_ascii
was added in4.03
). By the looks of it, lwt supports4.02
but isn't tested against it so maybe there's a plan to drop support, in which caseuppercase_ascii
would probably suffice?EDIT: I just noticed there are tests for
4.02
and they fail for my "fix" because an older version of dune is used. It probably needs something like https://github.com/janestreet/result? At any rate the issue still stands :))The text was updated successfully, but these errors were encountered: