From 3620bbaf7dd6c3c9347616efca8dd4a334b4d62a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Kurowski?= Date: Mon, 27 Nov 2023 02:28:53 +0100 Subject: [PATCH] fix: Allow 10MB buffer in `pipBulkShow` --- packages/pyright-scip/src/virtualenv/environment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/pyright-scip/src/virtualenv/environment.ts b/packages/pyright-scip/src/virtualenv/environment.ts index 802ba9f8d..e14d31964 100644 --- a/packages/pyright-scip/src/virtualenv/environment.ts +++ b/packages/pyright-scip/src/virtualenv/environment.ts @@ -35,7 +35,7 @@ function pipList(): PipInformation[] { function pipBulkShow(names: string[]): string[] { // TODO: This probably breaks with enough names. Should batch them into 512 or whatever the max for bash would be return child_process - .execSync(`${getPipCommand()} show -f ${names.join(' ')}`) + .execSync(`${getPipCommand()} show -f ${names.join(' ')}`, { maxBuffer: 1024 * 1024 * 10 }) .toString() .split('\n---'); }