-
Notifications
You must be signed in to change notification settings - Fork 111
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
(alert deprecated): Core.Sys.is_directory [since 2021-04] Use [Sys_unix] #155
Comments
On the Core documentation here https://ocaml.org/p/core/v0.15.0/doc/Core/Sys/index.html I can see that a lot of things are marked as |
Looks like there is a package called Core_unix https://ocaml.org/u/fc567798a08fe03047f17d3fa542a580/core_unix/v0.15.0/doc/Sys_unix/index.html which seems to be related to Core. It's weird, I thought we only had Core and Base now, instead of Core/Base/Core_kernel, but there still seem to be a Core/Base/Core_unix? And tha module offers a Sys_unix https://ocaml.org/u/fc567798a08fe03047f17d3fa542a580/core_unix/v0.15.0/doc/Sys_unix/index.html so I guess that's what I should use |
I look for the line to add to my opam file in the documentation, something like |
hum... so now I have two opens: open Core
open Core_unix I'm really wondering if this will be an issue, or if I should import one before the other, let's see... |
now I'm getting:
how is this possible? Sys_unix is in the doc https://ocaml.org/p/core_unix/v0.15.0/doc/Sys_unix/index.html |
maybe I don't have the right version of core_unix?
urg...
ok looks like I have the same version as the doc, what could it be? |
OK, thanks to ocaml-lsp I manage to click on I still can't find any information there on a Sys_unix. I feel like giving up |
ok let's try another path, google |
right before giving up, I think I vaguely remember that maybe importing |
Just wanted to add that I encountered the same message, and was not able to access any library called I was able to solve it simply by referencing I find the current tiers of Jane Street stdlib overlays to be quite confusing. I understand the motivation was to eliminate |
Thanks for this thread. I had the same question. |
I'll write my investigation following this error message as a thread, perhaps it can serve as feedback for the user experience of using this library (or ocaml more generally)
I'm getting this error message
the message seems weird, as it seems to imply to move to a function that will only work on unix systems.
anyway, I am on a unix system, so screw windows I guess. So I tried using
Core.Sys_unix.is_directory
but it doesn't seem to exist.usually I would expect the error message to link me to more information, but no so I'm still digging.
The text was updated successfully, but these errors were encountered: