-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Update OCaml stubs #9568
base: master
Are you sure you want to change the base?
Update OCaml stubs #9568
Conversation
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. (Because this pull request was imported automatically, there will not be any future comments.) |
(rule | ||
(target remote_old_decls_ffi.ml) | ||
(action | ||
(copy# ../facebook/remote_old_decls/stubs/remote_old_decls_ffi.ml remote_old_decls_ffi.ml))) |
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.
Alternatively if upgrading to Dune 3.17.0+ is fine, there's a file-available
macro.
Could you run ocamlformat and update the PR? |
5b20140
to
80ebba7
Compare
Done, also added ocamlformat as an OSS dep in #9573. |
The sandcastle module looks wrong, I'm seeing a compile error:
|
Yeah, looks like the OSS stub will need to be included conditionally in non-fbsource builds only. I'll see what I can do, there are some preexisting examples for this. |
80ebba7
to
79beca1
Compare
@mszabo-wikia has updated the pull request. You must reimport the pull request before landing. |
79beca1
to
76fa3ac
Compare
@mszabo-wikia has updated the pull request. You must reimport the pull request before landing. |
FWIW this isn't passing our CI still:
|
Yeah, the exclusion logic is definitely wrong. I'll look into this, thanks! |
@Wilfred Sorry about the delay, finally had some time to take a look at this. I think it will be necessary to rename the internal Let me know if you have any questions! |
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.
This worked for us, with three lines changed
~repo:_ | ||
~ignore_hh_version:_ | ||
~opts:_ = | ||
let get_project_metadata ~repo:_ ~ignore_hh_version:_ ~opts:_ = | ||
failwith "Not implemented" |
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.
This needs to return Lwt.return (Error ("Not implemented", Telemetry.create ()))
for the IDE integration to work.
Otherwise the init_with_find
call terminates execution.
~watchman_opts:_ | ||
~ignore_hh_version:_ | ||
~saved_state_type:_ = | ||
let load ~ssopt:_ ~progress_callback:_ ~watchman_opts:_ ~ignore_hh_version:_ = | ||
failwith "Not implemented" |
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.
This needs to return Lwt.return (Error "Not implemented")
for the IDE integration to work
files_changed: Saved_state_loader.changed_files; | ||
} | ||
|
||
let load ~project_metadata:_ ~threshold:_ ~root:_ = failwith "Not implemented" |
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.
This needs to return Error "Not implemented"
for IDE integration to work — otherwise the init_with_fetch
call terminates execution.
The OSS OCaml stubs under src/stubs have become out of sync with the code referencing them. Update the stubs to match.
76fa3ac
to
9cfe901
Compare
Thanks! Updated this branch now. |
@mszabo-wikia has updated the pull request. You must reimport the pull request before landing. |
The OSS OCaml stubs under src/stubs have become out of sync with the code referencing them.
Update the stubs to match.
Split from #9564.