From 2ef0d1d0dbfd6dcac35feb977862e669f4ab1521 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Mon, 23 Sep 2019 17:03:48 +0200 Subject: [PATCH] Increase maxBuffer for spawned daemon When installed cores are A LOT, core listing needs a lot of space :) --- arduino-ide-extension/src/node/arduino-daemon.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arduino-ide-extension/src/node/arduino-daemon.ts b/arduino-ide-extension/src/node/arduino-daemon.ts index b9ee058a..f17718d6 100644 --- a/arduino-ide-extension/src/node/arduino-daemon.ts +++ b/arduino-ide-extension/src/node/arduino-daemon.ts @@ -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;