From b83354943626ea7c50011d5806b17be17077d1c4 Mon Sep 17 00:00:00 2001 From: Mark Hudnall Date: Mon, 1 Mar 2021 23:55:05 -0800 Subject: [PATCH] Ignore solc remappings that don't exist --- solidity-flycheck.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/solidity-flycheck.el b/solidity-flycheck.el index 0a8670c..4147a40 100644 --- a/solidity-flycheck.el +++ b/solidity-flycheck.el @@ -212,11 +212,9 @@ no .soliumrc.json is found, `project-roots' is used." (defun solidity-flycheck--solc-remappings () (let* ((allow-paths (solidity-flycheck--solc-allow-paths))) (->> allow-paths - (mapcar - #'solidity-flycheck--only-subdirectories) - + (remove-if-not #'file-exists-p) + (mapcar #'solidity-flycheck--only-subdirectories) -flatten - (mapcar (lambda (dir) (let ((prefix (file-name-nondirectory dir)))