Increase maxBuffer for spawned daemon

When installed cores are A LOT, core listing needs a lot of space :)
This commit is contained in:
Martino Facchin 2019-09-23 17:03:48 +02:00
parent 62eff29172
commit 2ef0d1d0db

View File

@ -33,7 +33,8 @@ export class ArduinoDaemon implements BackendApplicationContribution {
if (!this.cliContribution.debugCli) {
const executable = await this.cli.getExecPath();
this.logger.info(`>>> Starting 'arduino-cli' daemon... [${executable}]`);
const daemon = exec(`${executable} daemon -v --log-level info --format json --log-format json`, (err, stdout, stderr) => {
const daemon = exec(`${executable} daemon -v --log-level info --format json --log-format json`,
{ encoding: 'utf8', maxBuffer: 1024 * 1024 }, (err, stdout, stderr) => {
if (err || stderr) {
console.log(err || new Error(stderr));
return;