Skip to content

Commit

Permalink
sync reporter logging
Browse files Browse the repository at this point in the history
This is an attempt to fix sbt/zinc#520
  • Loading branch information
eed3si9n committed Apr 5, 2018
1 parent 91483e7 commit f9f8b31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class LanguageServerReporter(
problemsByFile.clear()
}

override def log(problem: Problem): Unit = {
override def log(problem: Problem): Unit = synchronized {
val pos = problem.position
pos.sourceFile.toOption foreach { sourceFile: File =>
problemsByFile.get(sourceFile) match {
Expand Down

0 comments on commit f9f8b31

Please sign in to comment.