This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-15
Channels
- # aws-lambda (3)
- # beginners (37)
- # boot (294)
- # carry (1)
- # cider (38)
- # cljs-dev (37)
- # cljsjs (88)
- # clojure (187)
- # clojure-android (2)
- # clojure-austin (1)
- # clojure-dusseldorf (9)
- # clojure-hk (3)
- # clojure-italy (12)
- # clojure-russia (36)
- # clojure-spec (55)
- # clojure-uk (27)
- # clojurescript (75)
- # community-development (5)
- # conf-proposals (2)
- # copenhagen-clojurians (3)
- # cursive (9)
- # datomic (54)
- # devcards (5)
- # devops (3)
- # dirac (69)
- # emacs (6)
- # ethereum (1)
- # euroclojure (1)
- # events (3)
- # funcool (1)
- # hoplon (20)
- # immutant (4)
- # luminus (14)
- # midje (4)
- # om (178)
- # om-next (2)
- # onyx (47)
- # pedestal (19)
- # protorepl (20)
- # re-frame (14)
- # reagent (54)
- # ring (2)
- # ring-swagger (7)
- # test-check (10)
- # uncomplicate (11)
- # untangled (9)
- # yada (9)
btw. you got this one right: https://github.com/jrheard/voke/blob/ai/project.clj#L22
i did lein clean
and lein cljsbuild once dev
, but i still see no dirac folder in resources/public/js/compiled/out! hrm
this sounds like a bug fixed in https://github.com/binaryage/dirac/releases/tag/v0.6.6
aha! i'm picking up this project after not having touched it in 6-7 months, so that figures
lein ancient
is your friend: https://gist.github.com/darwin/626e38a855238b0d6f44bfe2576225bb
you cannot assume using cutting-edge technologies like dirac with old clojurescript, you have to run bleeding edge versions
my project's configuration / general situation is all messed up in general, but i'll sort it all out eventually
and, per https://github.com/bhauman/lein-figwheel/wiki/Using-the-Figwheel-REPL-within-NRepl , ran lein repl
(at which point the dirac agent starts up), then (use 'figwheel-sidecar.repl-api)
followed by (start-figwheel!)
and dirac devtools is able to connect, and i've got a working cljs repl in it, and i can inspect my app's state, etc etc
I’ll say, after many many times of messing with figwheel and friends w/lein, the boot tooling around magic cljs reload is way simpler.
you're saying it comes with figwheel-style auto-reloading of code built in, or easily achievable?
i mainly just want to have my editor open on one monitor, and my browser open on another, and when i change my code in one window, the other window magically updates to use my new code
(deftask dev-cljs-repl
"Run a restartable system in the Repl"
[]
(comp
(environ :env {:http-port "3300" :dev true})
(watch :verbose true)
(system :sys #'dev-system :auto true :files ["handler.clj"])
(reload :port 55554)
(cljs-repl)
(cljs)
(speak)))
@darwin - low-priority, about to head out for the night and also this is just a little toy project and not urgent at all, but fwiw: on the ai branch, dirac seems to work successfully, but i see this when i try to type into its repl:
Internal Dirac Error: an error was logged into the internal DevTools console Dirac v0.6.6, Chrome/55.0.2860.0, Mac/10.11.5, Backend API/external (449 registrations), Backend CSS/external (403 definitions) ("unable to locate sourceMap when extracting symbols for ClojureScript namespace 'cljs.core'")
and when i set a breakpoint, i see js rather than cljs: https://www.evernote.com/shard/s11/sh/38011c58-292e-4ea3-ad15-bf015d3c356c/f9e46949fdc2ea2d
here's what the dirac cljs repl looks like: https://www.evernote.com/shard/s11/sh/56c38e62-e120-49c8-aa41-2436c822d59b/f9c7452ca6b8fdb9
https://github.com/binaryage/dirac/blob/master/docs/configuration.md mentions that :source-map-timestamp true
is necessary, and i've got that set in my project.clj
you are not using https://github.com/binaryage/cljs-devtools, I would recommend installing it
I have just tested your project here on my machine with canary 55.0.2861.0 and it works, no sourcemap error