Skip to content

Commit

Permalink
Merge pull request #1049 from coq/schedule_fix
Browse files Browse the repository at this point in the history
fix: add empty dependencies even to an errored sentence
  • Loading branch information
rtetley authored Feb 25, 2025
2 parents b0b7f69 + 5e522d1 commit cd23d7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion language-server/dm/scheduler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,8 @@ let _string_of_state st =
let schedule_errored_sentence id error schedule =
let task = Block {id; error} in
let tasks = SM.add id (None, task) schedule.tasks in
{schedule with tasks}
let dependencies = SM.add id Stateid.Set.empty schedule.dependencies in
{tasks; dependencies}

let schedule_sentence (id, (ast, classif, synterp_st)) st schedule =
let base, st, task =
Expand Down

0 comments on commit cd23d7a

Please sign in to comment.