From 51b44f7f2bf52606321a2347fe3a0da3832945db Mon Sep 17 00:00:00 2001 From: Denis Loginov <137337+dinvlad@users.noreply.github.com> Date: Tue, 23 Apr 2024 11:54:12 -0400 Subject: [PATCH] Fix wdl-lsp check in VS Code (#47) --- client/vscode/src/extension.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/vscode/src/extension.ts b/client/vscode/src/extension.ts index 8ee6e6a..6fddc2e 100644 --- a/client/vscode/src/extension.ts +++ b/client/vscode/src/extension.ts @@ -91,7 +91,10 @@ export async function activate(context: ExtensionContext) { } try { - const { stdout } = await promisify(execFile)(pythonPath, ["-m", "pip", "show", "wdl-lsp"]); + const { stdout } = await promisify(execFile)(pythonPath, ["-m", "pip", "show", "wdl-lsp"]).catch(err => { + console.log(err); + return { stdout: "" }; + }); const versionStr = stdout.split('\n').find(line => line.startsWith('Version:')); if (!versionStr || versionStr.split(':')[1].trim() !== version) { await promisify(execFile)(pythonPath, [