File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
33## master (unreleased)
4+ * [ #158 ] ( https://github.com/clojure-emacs/orchard/issues/158 ) : Make classpath-namespaces resilient to faulty ns declarations.
45
56## 0.9.2 (2022-02-22)
67
Original file line number Diff line number Diff line change 3131 (cond
3232 (#{::eof ::fail } found) nil
3333 (and (list? found)
34- (-> found first #{`ns 'ns}))
34+ (-> found first #{`ns 'ns})
35+ (symbol? (second found)))
3536 (second found)
3637 :else (recur ))))))
3738
Original file line number Diff line number Diff line change 6262 (testing " when multiple ns forms are present"
6363 (spit url " (ns ns1) (ns ns2) (ns ns3)" )
6464 (is (= 'ns1 (sut/read-namespace uri))))
65+ (testing " when ns form is invalid"
66+ (spit url " (ns (:require [clojure.string]))" )
67+ (is (nil? (sut/read-namespace uri))))
6568 (testing " of top-level forms only"
6669 (spit url " (comment (ns ns1)) (ns ns2) (ns ns3)" )
6770 (is (= 'ns2 (sut/read-namespace uri))))
You can’t perform that action at this time.
0 commit comments