File tree 1 file changed +4
-3
lines changed
frontend/src/main/scala/bloop/reporter
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -276,17 +276,18 @@ final class BspProjectReporter(
276
276
override def reportCancelledCompilation (): Unit = ()
277
277
278
278
private var endEvent : Option [CompilationEvent .EndCompilation ] = None
279
+ private var wasEndProcessed : Boolean = false
279
280
override def reportEndCompilation (): Unit = {
280
281
endEvent match {
281
282
case Some (end) => logger.publishCompilationEnd(end)
282
- case None =>
283
+ case None if ! wasEndProcessed =>
283
284
logger.error(
284
285
" Fatal invariant violated: `reportEndCompilation` was called before `processEndCompilation`"
285
286
)
287
+ case _ =>
286
288
}
287
289
}
288
290
289
- //
290
291
override def processEndCompilation (
291
292
previousSuccessfulProblems : List [ProblemPerPhase ],
292
293
code : bsp.StatusCode ,
@@ -321,7 +322,7 @@ final class BspProjectReporter(
321
322
}
322
323
}
323
324
}
324
-
325
+ wasEndProcessed = true
325
326
endEvent = if (cycleCount.get == 0 ) {
326
327
recheckProblems
327
328
None
You can’t perform that action at this time.
0 commit comments