Skip to content

Commit

Permalink
fix hover message in case of problem with the number of subproofs
Browse files Browse the repository at this point in the history
  • Loading branch information
Alidra committed Oct 24, 2024
1 parent 11d6b5c commit 037f74a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lsp/lp_doc.ml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ let process_pstep (pstate,diags,logs) tac nb_subproofs =
pstate, (loc, 1, msg, None) :: diags, ((1, msg), loc) :: logs
| Some pstate ->
let goals = Some (current_goals pstate) in
pstate, (tac_loc, 4, "qres", goals) :: diags, logs
pstate, (tac_loc, 4, msg, goals) :: diags, logs

let process_proof pstate tacs logs =
Pure.ProofTree.fold process_pstep (pstate,[],logs) tacs
Expand Down
3 changes: 1 addition & 2 deletions src/pure/pure.ml
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,7 @@ let handle_tactic : proof_state -> Tactic.t -> int -> tactic_result =
| Fatal(Some p,m) ->
Tac_Error(None , Some p, Pos.popt_to_string p ^ m)
| Handle.Tactic.Tactic_error(a, Some p,m) ->
let ps, qres = a in
let _qres = Option.map (fun f -> f ()) qres in
let ps, _qres = a in
Tac_Error(Some (Time.save (), ss, ps, finalize, prv, sym_pos), Some p, Pos.popt_to_string p ^ m)

let end_proof : proof_state -> command_result =
Expand Down

0 comments on commit 037f74a

Please sign in to comment.