redhat-developer / vscode-openshift-tools

OpenShift extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-openshift-connector
MIT License
93 stars 59 forks source link

Use child_process.spawn instead of child_process.spawn.exec and and redirect stdout to OpenShift channel #244

Open dgolovin opened 5 years ago

dgolovin commented 5 years ago

This better solution than increase output buffer for exec function. That also allows to see output in progress while command is executed, compare to exec where output made visible after command is finished.

datho7561 commented 1 year ago

Currently, we only use child_process.exec() in:

I don't think this applies any more.

UPDATE: We have done some refactoring and we use exec in a few places again.

mohitsuman commented 2 months ago

@datho7561 do we need to migrate to spawn or exec works well. If it is working as expected, we can close this.

datho7561 commented 2 months ago

Based off of what Denis says in the original issue, it would be a good idea to migrate to spawn from exec. We have run into issues where the buffer overflows, leading to errors being thrown. We have a work around for this, but it's better if we are able to avoid this entirely.

mohitsuman commented 3 days ago

@datho7561 let's discuss this in the next sync call and either you or @msivasubramaniaan can own this and get this for the next release.