Skip to content

[2.x] Use JProcess for interactive forking#8677

Merged
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/fork-interactive
Feb 2, 2026
Merged

[2.x] Use JProcess for interactive forking#8677
eed3si9n merged 1 commit intosbt:developfrom
eed3si9n:wip/fork-interactive

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Feb 2, 2026

Fixes #8676

Problem

For interactive apps, including Scala REPL, it's better to use the raw Java Process, rather than Scala process that attempts to grab the output stream in a thread.

Solution

For forking that require both input and output,
use a Java process instead of the Scala process.

Note

This was inspired by #8604.

**Problem/Solution**
For forking that require both input and output,
use a Java process instead of the Scala process.
@eed3si9n eed3si9n merged commit 5131b86 into sbt:develop Feb 2, 2026
15 checks passed
@eed3si9n eed3si9n deleted the wip/fork-interactive branch February 2, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.x] Avoid Scala process when forking

1 participant