mirror of https://github.com/sbt/sbt.git
**Problem** When the sbt server fails to start (e.g. wrong JDK version), the client only shows "failed to connect to server" hiding the actual error. The server stderr is redirected to /dev/null to prevent Linux pipe buffer deadlocks (#8442), so diagnostic output is lost. **Solution** Redirect server stderr to a temp file instead of /dev/null. When the server fails to start (portfile never appears), read and print the temp file contents before throwing ServerFailedException. The temp file is cleaned up eagerly on both success and failure paths. Fixes #8812 |
||
|---|---|---|
| .. | ||
| main | ||
| test/scala/sbt | ||