Skip to content

Switched back to re-using ast jobs#341

Merged
rayman2000 merged 2 commits intomasterfrom
nklose/cancel-timing
Mar 5, 2026
Merged

Switched back to re-using ast jobs#341
rayman2000 merged 2 commits intomasterfrom
nklose/cancel-timing

Conversation

@rayman2000
Copy link
Contributor

@rayman2000 rayman2000 commented Mar 5, 2026

When the fancy LSP features were implemented, verification originally re-used AST-jobs if available from LSP parsing. This led to weird race conditions that we did not manage to fix, so we switched to always creating a new ParseAST job. I have now found that this also leads to race conditions: if Verification and LSP parses can interleave in way that deadlocks the verification.
Since re-use seems like the better way, I would like to revert this and (if they still occur) try to actually fix the original race conditions. This fix works for ViperIDE on my machine.

@rayman2000 rayman2000 requested a review from JonasAlaif March 5, 2026 14:48
@rayman2000 rayman2000 marked this pull request as ready for review March 5, 2026 14:49
@rayman2000 rayman2000 removed the request for review from JonasAlaif March 5, 2026 14:54
@rayman2000 rayman2000 added this pull request to the merge queue Mar 5, 2026
Merged via the queue into master with commit c618b77 Mar 5, 2026
13 checks passed
@rayman2000 rayman2000 deleted the nklose/cancel-timing branch March 5, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant