sbt/tasks
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
..
src/main/scala/sbt [2.x] fix: Handle CancellationException gracefully with usePipelining (#8718) 2026-02-09 02:28:54 -05:00
NOTICE Transfer copyright to Scala Center 2023-06-20 16:39:07 +02:00