Merge pull request #8054 from eed3si9n/wip/retry

[1.x] Skip retry on CompileCancelled
This commit is contained in:
eugene yokota 2025-03-03 22:57:07 -05:00 committed by GitHub
commit ce38f0a37d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -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"

View File

@ -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 {