From e2285c087c5651b93325625181939b69f0d86dff Mon Sep 17 00:00:00 2001 From: Brad Cornes Date: Tue, 15 Jun 2021 20:39:16 +0100 Subject: [PATCH] ignore watcher binary load errors --- packages/tailwindcss-language-server/src/watcher/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/tailwindcss-language-server/src/watcher/index.js b/packages/tailwindcss-language-server/src/watcher/index.js index fa567f8..cfb84fc 100644 --- a/packages/tailwindcss-language-server/src/watcher/index.js +++ b/packages/tailwindcss-language-server/src/watcher/index.js @@ -74,7 +74,11 @@ function resolve() { var parsed = builds.map(parseTags) var candidates = parsed.filter(matchTags(runtime, abi)) var winner = candidates.sort(compareTags(runtime))[0] - if (winner) return list[winner.file]() + if (winner) { + try { + return list[winner.file]() + } catch (_error) {} + } } function parseTags(file) {