Send the Bloop server output to a file when possible #853
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Needs scala-cli/bloop-core#55, included in the upcoming (Scala CLI's) bloop-core
1.4.20
.This sends the output of the Bloop server to a file under the user home directory (alongside the socket file,
~/Library/Caches/ScalaCli/bloop/daemon/output
on macOS for example), and adds ascala-cli bloop output
command printing that file in the console, so that users can easily have a look at that file.In order for that output file not to grow too big, we pass an option to the Bloop server so that it truncates that file periodically (as soon as it reaches 1 MB, scala-cli/bloop-core#55).