dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
erik.de.wildt 2019-12-10T08:06:03.059600Z

I’m unable to get the Dirac Agent running (listening on 8231) with shadow-cljs. I’ve added dirac to the dependencies, configured the nrepl middleware as dirac.nrepl/middleware and added dirac.runtime.preload to the preloads. However, i’m not sure how to start the agent. The docs mention a :repl-options {:init (do… for leiningen, but this doesn’t seem to work for shadow-cljs. Any help would be appreciated!

erik.de.wildt 2019-12-12T13:39:07.059900Z

Thanks for the reply. I was able to achieve my goal by using a simple script.

erik.de.wildt 2019-12-12T13:39:13.060100Z

(require '[shadow.cljs.devtools.server :as server] ‘[shadow.cljs.devtools.api :as shadow] ’[dirac.agent]) (do (dirac.agent/boot!) (server/start!) (shadow/watch :app))

2019-12-12T16:31:45.060300Z

Ok, good. I think this solution will work only partially. The Dirac REPL won’t be using shadow-cljs compiler in the backend. The holy grail in the future would be to connect Dirac REPL to shadow-cljs somehow.

2019-12-10T12:09:38.059700Z

unfortunately Dirac does not play well with shadow-cljs, I would like to add support at some point, but I’m waiting for some additions to shadow