fix: Reset core message log #144

Merged
aniva merged 3 commits from bug/core-state-error-linger into dev 2024-12-11 09:09:34 -08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit ab77418e24 - Show all commits

View File

@ -244,7 +244,7 @@ protected def GoalState.tryTacticM (state: GoalState) (goal: MVarId) (tacticM: E
let nextState ← state.step goal tacticM guardMVarErrors
-- Check if error messages have been generated in the core.
let newMessages ← (← Core.getMessageLog).toList --.drop state.coreState.messages.toList.length
let newMessages ← (← Core.getMessageLog).toList.drop state.coreState.messages.toList.length
|>.filterMapM λ m => do
if m.severity == .error then
return .some $ ← m.toString