Skip to content

[1.x] Use JProcess for interactive forking#8678

Merged
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport/8677
Feb 2, 2026
Merged

[1.x] Use JProcess for interactive forking#8678
eed3si9n merged 1 commit intosbt:1.12.xfrom
eed3si9n:bport/8677

Conversation

@eed3si9n
Copy link
Copy Markdown
Member

@eed3si9n eed3si9n commented Feb 2, 2026

This is a backport of #8677
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 2380082 into sbt:1.12.x Feb 2, 2026
10 checks passed
@eed3si9n eed3si9n deleted the bport/8677 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.

1 participant