looks good to me
go to javascript console in your page, and look if dirac object exists
VM244:1 Uncaught ReferenceError: dirac is not defined at <anonymous>:1:1
on disk, look into resources/public/js/compiled/out
is there dirac subfolder?
nope!
lein clean
and rebuild you βdevβ build-id from scratch
btw. you got this one right: https://github.com/jrheard/voke/blob/ai/project.clj#L22
people make easy mistake and donβt clean cljs resources
heh, no clue where i got that line from π
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
are you sure RELEASE picked up 0.6.6?
maybe specify it explicitly
will do
but no, it cannot be that bug, even with that bug present, dirac object would exist
hrm
specified 0.6.6, same behavior
can you push you version?, I would try the project here on my machine
absolutely - the 'ai' branch should be up to date
same behaviour here, that is good news π
π π
ah!
you are using ancient clojurescript
this bug was there when dnolen introduced :preloads, 2+ months ago
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
niice
i'll go through and update those, i'm sure that's the problem
you cannot assume using cutting-edge technologies like dirac with old clojurescript, you have to run bleeding edge versions
π
hee, sounds good
thanks again!
have to go, good luck!
ok now we're getting somewhere!
my project's configuration / general situation is all messed up in general, but i'll sort it all out eventually
to get figwheel code reloading and dirac to happen at the same time:
i added [figwheel-sidecar "0.5.7"] to my deps
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!)
at which point figwheel's auto code reloading / etc gets set up
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
whee
thanks! π
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.
i'll have to give boot a shot one of these days
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)))
yep
nice
β€οΈ β€οΈ
writing all this down, thanks for the code+links!
this seems to be an addon with dirac and devtools included
nice
@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
thanks again for your help!
(couldn't find any variation of "unable to locate sourceMap" in google / github)
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
btw. the error comes from here: https://github.com/binaryage/dirac/blob/5c1fcf8994ce7fa52227d553ec8f0a240cc938df/resources/unpacked/devtools/front_end/dirac_lazy/dirac_lazy.js#L603
@jrheard ^