From 9db05b6945c7bf6a8a5f96ff141074f36a30e309 Mon Sep 17 00:00:00 2001 From: nukoyluoglu <48370863+nukoyluoglu@users.noreply.github.com> Date: Wed, 24 Jun 2020 00:59:29 +0300 Subject: [PATCH] ignore 'screen size is bogus' error; fixes microsoft/vscode/issues/100563 (and microsoft/vscode/issues/75932) (#5669) * ignore 'screen size is bogus' error; fixes microsoft/vscode#75932; imitiates similar fix for a different extension microsoft/vscode-node-debug/commit/5298920 --- Extension/src/Debugger/nativeAttach.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Extension/src/Debugger/nativeAttach.ts b/Extension/src/Debugger/nativeAttach.ts index 070f10eee3..52291840f3 100644 --- a/Extension/src/Debugger/nativeAttach.ts +++ b/Extension/src/Debugger/nativeAttach.ts @@ -175,7 +175,12 @@ function execChildProcess(process: string, workingDirectory?: string): Promise 0) { - reject(new Error(stderr)); + if (stderr.indexOf('screen size is bogus') >= 0) { + // ignore this error silently; see https://github.com/microsoft/vscode/issues/75932 + // see similar fix for the Node - Debug (Legacy) Extension at https://github.com/microsoft/vscode-node-debug/commit/5298920 + } else { + reject(new Error(stderr)); + } return; }