File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1212 [clojure.core.memoize :as memoize]
1313 [clojure.java.io :as io]
1414 [clojure.string :as string]
15+ [eca.logger :as logger]
1516 [eca.shared :as shared])
1617 (:import
1718 [java.io File]))
7576 (binding [json.factory/*json-factory* (json.factory/make-json-factory
7677 {:allow-comments true })]
7778 (json/parse-string raw-string true ))
78- (catch Exception _
79- nil )))
79+ (catch Exception e
80+ ( logger/warn " Error parsing config json: " ( .getMessage e)) )))
8081
8182(defn ^:private config-from-envvar* []
8283 (some-> (System/getenv " ECA_CONFIG" )
Original file line number Diff line number Diff line change 77 [eca.messenger :as messenger]
88 [eca.shared :as shared]))
99
10- (defn ^:private diagnostics [arguments {:keys [messenger config]}]
10+ (defn ^:private diagnostics
11+ " Return editor diagnostics (e.g., LSP findings)."
12+ [arguments {:keys [messenger config]}]
1113 (or (tools.util/invalid-arguments arguments [[" path" #(or (nil? %)
1214 (string/blank? %)
1315 (not (fs/directory? %))) " Path needs to be a file, not a directory." ]])
You can’t perform that action at this time.
0 commit comments