Skip to content

Commit 8f65ccc

Browse files
authored
Merge pull request #163 from tgodzik/updaten
bugfix: Don't show error message if nothing needs to be send, but end was processed
2 parents 967aa1b + 242278b commit 8f65ccc

File tree

8 files changed

+11
-10
lines changed

8 files changed

+11
-10
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
with:
1717
submodules: true
1818
fetch-depth: 0
19-
- uses: coursier/[email protected].0
19+
- uses: coursier/[email protected].5
2020
with:
2121
apps: scalafmt
2222
jvm: "temurin:17"

.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.8.0"
1+
version = "3.8.1"
22

33
align.preset = more
44
maxColumn = 100

backend/.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.7.3"
1+
version = "3.8.1"
22
runner.dialect = scala213
33
maxColumn = 100
44
docstrings.style = Asterisk

benchmarks/.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.7.3"
1+
version = "3.8.1"
22
runner.dialect = scala213
33
maxColumn = 100
44
docstrings.style = Asterisk

bridges/.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.7.3"
1+
version = "3.8.1"
22
runner.dialect = scala213
33
maxColumn = 100
44
docstrings.style = Asterisk

frontend/.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.7.3"
1+
version = "3.8.1"
22
runner.dialect = scala213
33
maxColumn = 100
44
docstrings.style = Asterisk

frontend/src/main/scala/bloop/reporter/BspProjectReporter.scala

+4-3
Original file line numberDiff line numberDiff line change
@@ -276,17 +276,18 @@ final class BspProjectReporter(
276276
override def reportCancelledCompilation(): Unit = ()
277277

278278
private var endEvent: Option[CompilationEvent.EndCompilation] = None
279+
private var wasEndProcessed: Boolean = false
279280
override def reportEndCompilation(): Unit = {
280281
endEvent match {
281282
case Some(end) => logger.publishCompilationEnd(end)
282-
case None =>
283+
case None if !wasEndProcessed =>
283284
logger.error(
284285
"Fatal invariant violated: `reportEndCompilation` was called before `processEndCompilation`"
285286
)
287+
case _ =>
286288
}
287289
}
288290

289-
//
290291
override def processEndCompilation(
291292
previousSuccessfulProblems: List[ProblemPerPhase],
292293
code: bsp.StatusCode,
@@ -321,7 +322,7 @@ final class BspProjectReporter(
321322
}
322323
}
323324
}
324-
325+
wasEndProcessed = true
325326
endEvent = if (cycleCount.get == 0) {
326327
recheckProblems
327328
None

shared/.scalafmt.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.7.3"
1+
version = "3.8.1"
22
runner.dialect = scala213
33
maxColumn = 100
44
docstrings.style = Asterisk

0 commit comments

Comments
 (0)