Skip to content

Conversation

eatkins
Copy link
Contributor

@eatkins eatkins commented Oct 6, 2020

When sbt is starting up and there is an error with the build loading, we
need to read input from the user to determine to restart the build or
not. What is tricky is that there are potentially two sources of input:
thin clients connected through the boot server socket and the actual sbt
console process. If there are not connected thin clients and no system
console is available, we should return -1 in System.in.read, which will
cause sbt to exit.

@eatkins
Copy link
Contributor Author

eatkins commented Oct 6, 2020

Fixes #5938

When sbt is starting up and there is an error with the build loading, we
need to read input from the user to determine to restart the build or
not. What is tricky is that there are potentially two sources of input:
thin clients connected through the boot server socket and the actual sbt
console process. If there are not connected thin clients and no system
console is available, we should return -1 in System.in.read, which will
cause sbt to exit.
@eed3si9n eed3si9n merged commit 715bcca into sbt:develop Oct 6, 2020
@eatkins eatkins deleted the boot-system-in-fix branch October 7, 2020 17:29
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 participants