turtle icon indicating copy to clipboard operation
turtle copied to clipboard

shellRun hangs if output is large

Open pwerry opened this issue 2 years ago • 1 comments

Describe the bug If the output of a shell command is really large then shellRun will hang

Checklist

To Reproduce run a command like git cat-file -p origin/main:<some-big-file>. In our case the file was a 4000 line long OpenAPI spec.

Expected behavior Dumps file output

pwerry avatar Aug 19 '22 21:08 pwerry

This likely relates to reading all the output into a String for the return value. There is an API within Turtle to run a command with streaming output, maybe this needs to be used for a command with a lot of output like this.

lordcodes avatar Aug 20 '22 16:08 lordcodes

Closing, as the solution is to use the streaming API when there will be a lot of output.

lordcodes avatar Jun 07 '23 21:06 lordcodes