sbt/sbt-app/src/sbt-test/project
PandaMan b2fea15030
[2.x] fix: Handle CancellationException gracefully with usePipelining (#8718)
When usePipelining is enabled and compilation has errors, CancellationException
was being thrown and showing confusing stack traces to users. This fix catches
the exception in ConcurrentRestrictions.take() and converts it to Incomplete,
which is properly handled by the task execution framework without showing stack
traces.

- Added CancellationException import
- Wrapped jservice.take().get() in try-catch
- Convert CancellationException to Incomplete to prevent stack traces
- Added scripted test to verify the fix

Fixes #7973
2026-02-09 02:28:54 -05:00
..
Class.forName [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
aggregate [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
append [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
auto-aggregate [2.x] perf: Avoid copying directories 2025-11-17 05:25:59 -05:00
auto-import [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
auto-plugins [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
auto-plugins-default-requires-jvmplugin [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
auto-plugins-ivy-disabled [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
auto-plugins-nested [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
base-sources [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
binary-plugin [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
bsp-internal-dependency-configs [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
build-deps [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
build-level-keys [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
circular [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
common-settings Fix common settings loading 2026-01-25 01:29:09 -05:00
common-settings-synthetic-root Merge branch '1.12.x' into wip/merge-1.12.x 2026-01-05 00:08:21 -05:00
config-name-display [2.x] fix: Use correct configuration identifier for display (#8698) 2026-02-06 12:54:58 -05:00
consoleProject [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
continuations [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
cross-scala-versions-default [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
cross-source [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
default-auto-plugins [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
default-settings [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
defs [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
derived [2.x] fix: Fix subproject evaluation order (#8672) 2026-02-01 02:33:11 -05:00
extra [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
extra-projects [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
extra-projects-key-aggregate [2.x] fix: extraProjects with auto-root aggregate breaks key aggregation (#8690) 2026-02-04 23:25:47 -05:00
extra-projects-root [2.x] fix: allow defining root project with extraProjects (#4976) (#8694) 2026-02-05 19:07:30 -05:00
flatten [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
generated-root-no-publish [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
giter8-plugin [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
ignore-hidden-build-files [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
in-this-build [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
inside-ci [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
internal-dependency-configurations [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
internal-tracking [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
isolated-build-definitions [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
lib [2.x] fix: Replace Scala version with u when crossPaths is false 2025-12-18 00:00:11 -05:00
lint [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
lint-autostartserver [2.x] fix: Exclude autoStartServer from lintUnused warnings (#6624) (#8708) 2026-02-07 10:47:25 -05:00
literal-defs [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
load-hooks [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
nested-macro Scala 3.8.1 2026-01-24 04:52:28 -05:00
no-delegate Scala 3.8.1 2026-01-24 04:52:28 -05:00
old-ops [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
plugin-scala-compiler-dependency [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
plugins [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
projectref fix: Fix root project detection 2024-12-02 03:15:35 -05:00
provided [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
reload-val-change fix: Fix NoClassDefFoundError after changing val in build.sbt (#8521) 2026-01-13 18:45:16 -05:00
remove Scala 3.8.1 2026-01-24 04:52:28 -05:00
sbt-composite-projects [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
sbt-file-projects [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
sbt-plugin [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
sbt-version-change [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala-dyn-version [2.x] feat: Add "3-latest.candidate" support for Scala 3 release candidates (#8596) 2026-01-21 03:42:50 -05:00
scala-loader [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala-version Show warnings when scalaVersion is missing 2026-01-04 15:23:05 -05:00
scala3-binary-version [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala3-console-project [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala3-cross-target [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala3-example-project [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala3-instance-loader [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala3-sandwich [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scala3-semanticdb [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scripted-bad-def [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scripted-dependencies [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scripted-java-home [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scripted-plugin [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
scripted-skip-incompatible [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
semanticdb-version [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
semanticdbEnabled Merge branch '1.12.x' into wip/merge-1.12.x 2026-01-05 00:08:21 -05:00
semanticdbIncludeInJar rename scripted 2025-03-28 11:55:35 +01:00
sequential [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
session-save [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
session-update-from-cmd [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
setting-macro [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
setting-order [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
settings [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
settings-definition [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
skip enable some scripted tests 2025-09-24 07:41:33 +09:00
source-plugins [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
src-plugins [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
src-scala-binary-version [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
subproject-dependson [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
task fix: Resurrect or for tasks 2024-10-10 02:39:52 -04:00
test-script-file [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
thisProject [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
thisProject-aggregate fix: Resolve ThisProject to empty to avoid cycle in aggregate/deps DAG 2026-02-01 01:59:46 +01:00
transitive-plugins [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
unified [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
unique-settings-computation [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
update-classifiers [2.x] test: Move back the project scripted tests (#8660) 2026-01-31 17:41:45 -05:00
usePipelining-cancellation [2.x] fix: Handle CancellationException gracefully with usePipelining (#8718) 2026-02-09 02:28:54 -05:00
val-order [2.x] fix: Fix subproject evaluation order (#8672) 2026-02-01 02:33:11 -05:00