-
Notifications
You must be signed in to change notification settings - Fork 114
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
Support OCaml 5.2 #470
Support OCaml 5.2 #470
Conversation
Got here too late: My branch is here https://github.com/DiningPhilosophersCo/utop/tree/prometheansacrifice%40ocaml-5-2 |
bac8750
to
f26000b
Compare
Thanks for this PR.
(note the
This is the main trick and the most important part to get a green build on all supported versions. Now, regarding architecture, utop used to have many I'll leave the rest of my comments as a review. Thanks again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, many comments regarding organization but this is going to work.
7acabde
to
bcc2048
Compare
@emillon thanks for the guidance! 🙏🏼 made most of the changes (except the |
src/lib/uTop_compat.ml
Outdated
#endif | ||
end | ||
|
||
let is_abstract_type_kind type_kind = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor remark, but I think we can keep the type_kind =
part in the guard and just expose abstract_type_kind
src/lib/uTop_complete.ml
Outdated
@@ -394,7 +394,7 @@ let visible_modules () = | |||
(Sys.readdir (if dir = "" then Filename.current_dir_name else dir)) | |||
with Sys_error _ -> | |||
acc) | |||
String_set.empty @@ Load_path.get_paths () | |||
String_set.empty @@ (UTop_compat.get_load_path ()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@
and parens are redundant here
43ef436
to
bc6b9b1
Compare
(I haven't forgotten, I'll get back to you about this during week 1) |
bc6b9b1
to
d73ff65
Compare
Co-authored-by: Rashid Al Muhairi <r.muhairi@pm.me>
130ea98
to
67f84d6
Compare
@leostera I rebased this on top of This is good to go for a release supporting 5.2 but there will probably be things to fix regarding hidden paths, and we'll have to decide if we want to provide a precise API for the load path. |
Thanks everyone. that was the first time I was looking for external contributors and this was very succesful, despite the delay in merging! |
Would it be possible to get a new release? |
@kit-ty-kate You don't have access to do that on your own? We could give it to you. |
as I said previously, I'm waiting for 5.2 in ocaml-ci to cut the release to make sure it works there. this should happen after the first alpha, right? |
alpha1 is already available but ocaml-ci hasn't been updated yet. This is tracked at ocurrent/ocaml-ci#917 In the meantime, is there any chance you could spawn an opam switch locally instead? It should take less than 3 minutes |
CHANGES: * Add support for OCaml 5.2 (ocaml-community/utop#470, fixes ocaml-community/utop#466, @leostera, @ManasJayanth, @huwaireb)
Hi folks! I saw Sabine's tweet and I figured I'd give this a shot. There's a few things that I'd like to upstream to the compiler (like Ast_helpers to create function params), but otherwise this seems to be working.
Happy to amend anything here, just figured I'd open the PR early to get feedback / directions.
Ideally would close #466