Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ScalaModule#console by properly inheriting streams #3500

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

lihaoyi
Copy link
Member

@lihaoyi lihaoyi commented Sep 10, 2024

SystemStreamswithStreams(SystemStreams.original) didn't quite do the right thing because it continued to use the PumpedProcess*puts for subprocesses rather than directly inheriting the streams. This fixes it.

Tested manually via ./mill dist.launcher && (cd example/scalalib/basic/1-simple && ../../../../out/dist/launcher.dest/run -i console), which previously would print Unable to create system terminal and not allow keyboard navigation in the REPL, and with this PR it no longer warns and keyboard navigation works correctly

Fixes #3491

@lihaoyi lihaoyi merged commit 5badefe into com-lihaoyi:main Sep 10, 2024
23 checks passed
@lihaoyi lihaoyi added this to the 0.12.0 milestone Sep 10, 2024
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.

console command launches dumb terminal without keyboard navigability
1 participant