mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-09 04:16:38 +00:00
Merge pull request #65 from bcmi-labs/increase_maxBuffer
Increase maxBuffer for spawned daemon
This commit is contained in:
commit
6331b7ddfd
@ -33,7 +33,8 @@ export class ArduinoDaemon implements BackendApplicationContribution {
|
|||||||
if (!this.cliContribution.debugCli) {
|
if (!this.cliContribution.debugCli) {
|
||||||
const executable = await this.cli.getExecPath();
|
const executable = await this.cli.getExecPath();
|
||||||
this.logger.info(`>>> Starting 'arduino-cli' daemon... [${executable}]`);
|
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) {
|
if (err || stderr) {
|
||||||
console.log(err || new Error(stderr));
|
console.log(err || new Error(stderr));
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user