mirror of https://github.com/sbt/sbt.git
Merge pull request #8054 from eed3si9n/wip/retry
[1.x] Skip retry on CompileCancelled
This commit is contained in:
commit
ce38f0a37d
|
|
@ -11,7 +11,7 @@ import scala.util.Try
|
|||
// ThisBuild settings take lower precedence,
|
||||
// but can be shared across the multi projects.
|
||||
ThisBuild / version := {
|
||||
val v = "1.10.8-SNAPSHOT"
|
||||
val v = "1.10.10-SNAPSHOT"
|
||||
nightlyVersion.getOrElse(v)
|
||||
}
|
||||
ThisBuild / version2_13 := "2.0.0-SNAPSHOT"
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@ import sbt.internal.server.BspCompileTask.exchange
|
|||
import sbt.librarymanagement.Configuration
|
||||
import sbt.util.InterfaceUtil
|
||||
import sjsonnew.support.scalajson.unsafe.Converter
|
||||
import xsbti.CompileCancelled
|
||||
import xsbti.CompileFailed
|
||||
import xsbti.Problem
|
||||
import xsbti.Severity
|
||||
|
|
@ -38,7 +39,7 @@ object BspCompileTask {
|
|||
val task = BspCompileTask(targetId, project, config, ci)
|
||||
try {
|
||||
task.notifyStart()
|
||||
val result = Retry(compile(task))
|
||||
val result = Retry(compile(task), classOf[CompileCancelled], classOf[CompileFailed])
|
||||
task.notifySuccess(result)
|
||||
result
|
||||
} catch {
|
||||
|
|
|
|||
Loading…
Reference in New Issue