This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-11-26
Channels
- # beginners (17)
- # boot (3)
- # cljs-dev (2)
- # cljsrn (3)
- # clojure (52)
- # clojure-austin (1)
- # clojure-poland (4)
- # clojure-russia (29)
- # clojure-spec (25)
- # clojure-uk (5)
- # clojurescript (39)
- # cursive (29)
- # data-science (5)
- # datomic (5)
- # fulcro (21)
- # graphql (1)
- # hoplon (20)
- # off-topic (5)
- # pedestal (1)
- # perun (3)
- # protorepl (2)
- # re-frame (7)
- # ring (1)
- # shadow-cljs (19)
- # unrepl (10)
- # vim (4)
I have a build.boot configured as such:
(deftask learning-dev []
(comp
(repl :port 4001)
(fn [next]
(fn [fileset]
(require 'server.ss-web :reload)
((var-get (resolve 'server.ss-web/launch-dev)))
(next fileset)))
(watch)
(fn [next]
(fn [fileset]
(require 'server.ss-web :reload)))))
the problem is that on an error loadikng a namesapce, the repl dies
is there a way to try/catch this, so that on error, it displays the error, but the repl stays alive ?never tried to start repl-client in a boot task, but I usually have repl running as server and it never dies because of ns error.. (repl :server true :port 4001)
(deftask learning-dev []
(comp
(repl :port 4001)
(watch)
(fn [next]
(fn [fileset]
(require 'clojure.tools.namespace.repl)
((resolve 'clojure.tools.namespace.repl/refresh))))))
is giving me:
java.lang.IllegalStateException: Can't set!: *ns* from non-binding thread
how do . fix this, and how do I do this on a binding thread ?