Skip to content

Commit

Permalink
Adapt to coq/coq#19741 (parse_extra has an additionnal argument)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkySkimmer committed Oct 23, 2024
1 parent 50b41ad commit e9a3f2e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions language-server/dm/delegationManager.ml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ module type Worker = sig

(* for worker toplevels *)
type options
val parse_options : string list -> options * string list
val parse_options : Coqargs.t -> string list -> options * string list
(* the sentence ids of the remote_mapping being delegated *)
val setup_plumbing : options -> ((job_update_request -> unit) * job_t)

Expand Down Expand Up @@ -331,7 +331,7 @@ let setup_plumbing port =
log_worker @@ Printf.sprintf "error starting: %s: %s: %s" syscall param (Unix.error_message code);
exit 1

let parse_options extra_args =
let parse_options _baseopts extra_args =
match extra_args with
| [ o ; port ] when o = option_name -> int_of_string port, []
| _ ->
Expand Down
2 changes: 1 addition & 1 deletion language-server/dm/delegationManager.mli
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module type Worker = sig

(* for worker toplevels *)
type options
val parse_options : string list -> options * string list
val parse_options : Coqargs.t -> string list -> options * string list
(* the sentence ids of the remote_mapping being delegated *)
val setup_plumbing : options -> ((job_update_request -> unit) * job_t)

Expand Down
2 changes: 1 addition & 1 deletion language-server/dm/executionManager.mli
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ val print_exec_overview_of_state : state -> unit
(** Coq toplevels for delegation without fork *)
module ProofWorkerProcess : sig
type options
val parse_options : string list -> options * string list
val parse_options : Coqargs.t -> string list -> options * string list
val main : st:Vernacstate.t -> options -> unit
val log : string -> unit
end
2 changes: 1 addition & 1 deletion language-server/dm/parTactic.mli
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
(**************************************************************************)
module TacticWorkerProcess : sig
type options
val parse_options : string list -> options * string list
val parse_options : Coqargs.t -> string list -> options * string list
val main : st:Vernacstate.t -> options -> unit
val log : string -> unit
end
Expand Down
2 changes: 1 addition & 1 deletion language-server/vscoqtop/vscoqtop.ml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ let _ =
let args = CoqProject_file.coqtop_args_from_project project in
log (Printf.sprintf "Arguments from project file %s: %s" f (String.concat " " args));
fst @@ Coqargs.parse_args ~usage:vscoqtop_specific_usage ~init:Coqargs.default args in
let opts, () = Coqinit.parse_arguments ~usage:vscoqtop_specific_usage ~initial_args ~parse_extra:(fun x -> skip_xd [] x) () in
let opts, () = Coqinit.parse_arguments ~usage:vscoqtop_specific_usage ~initial_args ~parse_extra:(fun _ x -> skip_xd [] x) () in
let injections = Coqinit.init_runtime opts in
Safe_typing.allow_delayed_constants := true; (* Needed to delegate or skip proofs *)
Sys.(set_signal sigint Signal_ignore);
Expand Down

0 comments on commit e9a3f2e

Please sign in to comment.