Skip to content

Commit

Permalink
version 10.1.6 - always check if namespace is cached
Browse files Browse the repository at this point in the history
  • Loading branch information
viebel committed Feb 17, 2020
1 parent 3a8c34c commit 39e021f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject viebel/klipse-clj "10.1.5"
(defproject viebel/klipse-clj "10.1.6"
:description "Self-hosted clojurescript library"
:license "GPL-3.0"
:url "https://github.com/viebel/klipse-clj"
Expand Down
4 changes: 2 additions & 2 deletions src/klipse_clj/lang/clojure/io.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,13 @@
(println "load-ns-from-file: cannot fetch" filename)))))

(defn cached-macro-ns-regexp []
(:clojure_cached_macro_ns_regexp *klipse-settings* #"cljs.core.specs.alpha|klipse-clj\..*|klipse-clj\.repl|cljs\.reader|cljs\.core\.[async|match].*|clojure\.math\.macros|gadjett\.core|cljs\.test|cljs.tools.reader.*|clojure.test.check.*|reagent\..*|om\..*|cljs\.spec.*|cljs-time\..*|re-frame\..*|net\.cgrand\.macrovich|reagent-forms\..*|ajax\.macros|poppea|expound\..*"))
(:clojure_cached_macro_ns_regexp *klipse-settings* #".*" #_#"cljs.core.specs.alpha|klipse-clj\..*|klipse-clj\.repl|cljs\.reader|cljs\.core\.[async|match].*|clojure\.math\.macros|gadjett\.core|cljs\.test|cljs.tools.reader.*|clojure.test.check.*|reagent\..*|om\..*|cljs\.spec.*|cljs-time\..*|re-frame\..*|net\.cgrand\.macrovich|reagent-forms\..*|ajax\.macros|poppea|expound\..*"))

(defn cached-macro-ns? [name]
(re-matches (cached-macro-ns-regexp) (str name)))

(defn cached-ns-regexp []
(:clojure_cached_ns_regexp *klipse-settings* #"cljs.core.specs.alpha|cljs\.stacktrace|cljs\.core\.[async|match].*|cljs\.spec.*|clojure.math\.combinatorics|clojure.test.check.*|reagent\..*|om\..*|clojure\.data|cljs.tools.reader.*|cljs-time\..*|re-frame\..*|day8\.re-frame\..*|reagent-forms\..*|re-frisk\..*|re-frisk-shell\..*|datafrisk\..*|ajax\..*|cljs\.tools\.reader\..*|cljs-bean\..*|expound\..*"))
(:clojure_cached_ns_regexp *klipse-settings* #".*" #_#"cljs.core.specs.alpha|cljs\.stacktrace|cljs\.core\.[async|match].*|cljs\.spec.*|clojure.math\.combinatorics|clojure.test.check.*|reagent\..*|om\..*|clojure\.data|cljs.tools.reader.*|cljs-time\..*|re-frame\..*|day8\.re-frame\..*|reagent-forms\..*|re-frisk\..*|re-frisk-shell\..*|datafrisk\..*|ajax\..*|cljs\.tools\.reader\..*|cljs-bean\..*|expound\..*"))


(defn cached-cljs-ns? [name]
Expand Down

0 comments on commit 39e021f

Please sign in to comment.