Skip to content

Commit

Permalink
Fix clojure-emacs#2659 handle #shadow/env tag when getting shadow-c…
Browse files Browse the repository at this point in the history
…ljs builds

Since builds are unlikely to be set from env variables just pass the
`#shadow/env` tag values to `identity`, preventing things from crashing.
  • Loading branch information
rpkarlsson committed Jul 2, 2019
1 parent 04cde7c commit 32252bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cider.el
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ The default options of `browser-repl' and `node-repl' are also included."
(when (file-exists-p shadow-edn)
(with-temp-buffer
(insert-file-contents shadow-edn)
(let ((hash (car (parseedn-read))))
(let ((hash (car (parseedn-read '((shadow/env . identity))))))
(cider--shadow-parse-builds hash))))))

(defun cider-shadow-select-cljs-init-form ()
Expand Down

0 comments on commit 32252bf

Please sign in to comment.