vscode-bazel-tools icon indicating copy to clipboard operation
vscode-bazel-tools copied to clipboard

Error: stderr maxBuffer exceeded

Open Globegitter opened this issue 6 years ago • 4 comments

Was just trying out this addon and getting the following error:

Error: stderr maxBuffer exceeded

Looks very interesting, so thought it would be useful to post :)

Globegitter avatar Aug 20 '18 14:08 Globegitter

Hey @Globegitter thank you for reporting the finding. Can you tell me on which platform this error message came up? Did it happen all the time you are using the plugin?

dprogm avatar Sep 12 '18 18:09 dprogm

I am in Ubuntu 16.04, will try again to see if it happened all the time.

Globegitter avatar Sep 13 '18 06:09 Globegitter

@dprogm This is likely due to the use of child_process.exec. If possible use child_process.spawn.

child_process.exec has this option:

  • maxBuffer Largest amount of data in bytes allowed on stdout or stderr. If exceeded, the child process is terminated. See caveat at maxBuffer and Unicode. Default: 200 * 1024.

child_process.spawn has no such limitation.

zaucy avatar Sep 13 '18 06:09 zaucy

@Globegitter Hi I try to patch that part by simply add, maxBuffer: Infinity it does not break anything, but I not able to reproduce your issue in my environment so can you test it? here the branch. If it solve your issue, please notify me I will create the PR, thanks.

quentingodeau avatar Sep 14 '18 15:09 quentingodeau