-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Use system-num, if available #14646
Comments
I would rather be against this. These tricks significantly hamper the ability for tools like System compilers and their non opam managed Well in fact I could be for this if the same symlinking strategy is workable and applied to such a package. One problem I see though is how to keep the symlinks in sync with the system packages if those update. One will tell me this is because you are not using |
@dbuenzli - even with the symlinking, don't |
The problem is that there is no convention at the moment. Things are not entirely settled and ad-hoc both in Also it seems upstream is not entirely cold about it but I think we can also move towards the model described below without too much upstream involvement and/or implementing new lookups in the compiler. So it was not clear to me that
The system I would like to be able to gradually converge to is that there is an OCAMLPATH where lookups are performed for names in directories from left to right. The first level in these directories will correspond to package names (AFAIU @lpw25's OCAMLNAMEPSACES is basically a more complicated version of that, that also allows binding names regardless of the directory names). The idea is then that you could then simply set e.g. One catch though is that the stdlib is not segregated in a dir but written directly in
I understand this is a bit of a brain dump. From a broader perspective that's my design goals from a naming perspective:
|
I think it's time to move on a bit on this issue upstream I tried to make a point for agreeing on an |
Is there any way to force installation of the
But the problem still occurs:
No files mentioned in the error message exist, yet installation fails. UPD: |
This same problem (same as @Qusonann's) hit me. It drove me crazy. After Any ideal solution of dealing with this? |
@Qusonann @utkarsh2102 the best way to do that is: ocamlfind remove num
ocamlfind remove num-top P.S. That |
Aaah, I see, thanks! 😀 |
I hit this regularly, so just bumping this to prevent automatic closure. [edit: Feb, 2021] Back again after 2 months. lol, I wish this happened frequently enough that I could remember what I need to do to fix it or even where to come to find out 🤣 I'll see you next quarter, past me! 😈 [edit2: Oct 3, 2021] Hello again, my old friend. Progress: I've remembered to search for this issue! In case it brings me hear quicker in the future, The specific error I sought was |
Preventing the auto-close. Lalala. |
As a stop-gap, anyone have an idea how difficult it would be to add a message to this error, along these lines:
If such a workaround would be welcome, and if I could get a pointer, I'd give a shot at adding it. |
See here for post-failure messaging examples. |
Oh nice! Just a matter of configuration change. Thanks :) |
Thanks for the reminder to followup on making a PR to improve the messaging here :) -- replying here to keep the issue open. |
cf. #11300 (comment)
Given that
num
is stable, it should be possible to do the same trick innum
asgraphics
- so in a system switch, if the system-installed version of num is the correct version (e.g. from homebrew'socaml-num
package), make installingnum
a no-op, otherwise build it and override theMETA
in$SWITCHROOT/lib/num
.Happy to be assigned this, assuming no one has a strong objection to the principle of the change - I just haven't to time right now to amend the package and propose a PR.
The text was updated successfully, but these errors were encountered: