dirac

Dirac v1.7.2 is out: https://github.com/binaryage/dirac/releases/tag/v1.7.2
2016-09-15T00:00:06.000383Z

looks good to me

2016-09-15T00:00:22.000384Z

go to javascript console in your page, and look if dirac object exists

jrheard 2016-09-15T00:00:38.000385Z

VM244:1 Uncaught ReferenceError: dirac is not defined at <anonymous>:1:1

2016-09-15T00:01:42.000386Z

on disk, look into resources/public/js/compiled/out

2016-09-15T00:01:50.000387Z

is there dirac subfolder?

jrheard 2016-09-15T00:01:57.000388Z

nope!

2016-09-15T00:02:01.000389Z

lein clean

2016-09-15T00:02:17.000390Z

and rebuild you β€œdev” build-id from scratch

2016-09-15T00:02:45.000391Z

btw. you got this one right: https://github.com/jrheard/voke/blob/ai/project.clj#L22

2016-09-15T00:03:00.000393Z

people make easy mistake and don’t clean cljs resources

jrheard 2016-09-15T00:03:22.000394Z

heh, no clue where i got that line from πŸ˜•

jrheard 2016-09-15T00:03:41.000395Z

i did lein clean and lein cljsbuild once dev, but i still see no dirac folder in resources/public/js/compiled/out! hrm

2016-09-15T00:04:53.000396Z

this sounds like a bug fixed in https://github.com/binaryage/dirac/releases/tag/v0.6.6

2016-09-15T00:05:10.000398Z

are you sure RELEASE picked up 0.6.6?

2016-09-15T00:05:32.000399Z

maybe specify it explicitly

jrheard 2016-09-15T00:05:40.000400Z

will do

2016-09-15T00:06:26.000401Z

but no, it cannot be that bug, even with that bug present, dirac object would exist

jrheard 2016-09-15T00:06:36.000402Z

hrm

jrheard 2016-09-15T00:06:51.000403Z

specified 0.6.6, same behavior

2016-09-15T00:06:52.000404Z

can you push you version?, I would try the project here on my machine

jrheard 2016-09-15T00:07:06.000406Z

absolutely - the 'ai' branch should be up to date

2016-09-15T00:08:31.000407Z

same behaviour here, that is good news πŸ™‚

jrheard 2016-09-15T00:09:07.000408Z

πŸ˜„ πŸ˜„

2016-09-15T00:09:19.000409Z

ah!

2016-09-15T00:09:24.000410Z

you are using ancient clojurescript

2016-09-15T00:09:46.000411Z

this bug was there when dnolen introduced :preloads, 2+ months ago

jrheard 2016-09-15T00:10:00.000412Z

aha! i'm picking up this project after not having touched it in 6-7 months, so that figures

2016-09-15T00:10:36.000413Z

lein ancient is your friend: https://gist.github.com/darwin/626e38a855238b0d6f44bfe2576225bb

jrheard 2016-09-15T00:10:50.000415Z

niice

jrheard 2016-09-15T00:10:57.000416Z

i'll go through and update those, i'm sure that's the problem

2016-09-15T00:11:05.000417Z

you cannot assume using cutting-edge technologies like dirac with old clojurescript, you have to run bleeding edge versions

2016-09-15T00:11:09.000418Z

πŸ˜‰

jrheard 2016-09-15T00:11:11.000419Z

hee, sounds good

jrheard 2016-09-15T00:11:24.000420Z

thanks again!

2016-09-15T00:12:31.000421Z

have to go, good luck!

jrheard 2016-09-15T01:27:52.000422Z

ok now we're getting somewhere!

jrheard 2016-09-15T01:28:08.000423Z

my project's configuration / general situation is all messed up in general, but i'll sort it all out eventually

jrheard 2016-09-15T01:28:50.000424Z

to get figwheel code reloading and dirac to happen at the same time:

jrheard 2016-09-15T01:28:55.000425Z

i added [figwheel-sidecar "0.5.7"] to my deps

jrheard 2016-09-15T01:29:23.000426Z

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!)

jrheard 2016-09-15T01:29:46.000428Z

at which point figwheel's auto code reloading / etc gets set up

jrheard 2016-09-15T01:30:21.000429Z

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

jrheard 2016-09-15T01:30:33.000430Z

whee

jrheard 2016-09-15T01:30:34.000431Z

thanks! πŸ™‚

2016-09-15T01:46:50.000436Z

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.

jrheard 2016-09-15T01:48:57.000437Z

i'll have to give boot a shot one of these days

jrheard 2016-09-15T01:49:22.000438Z

you're saying it comes with figwheel-style auto-reloading of code built in, or easily achievable?

jrheard 2016-09-15T01:50:03.000439Z

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

2016-09-15T01:50:21.000440Z

(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)))

2016-09-15T01:50:22.000441Z

yep

jrheard 2016-09-15T01:51:02.000442Z

nice

2016-09-15T01:51:13.000443Z

https://github.com/adzerk-oss/boot-reload

jrheard 2016-09-15T01:51:41.000447Z

❀️ ❀️

jrheard 2016-09-15T01:51:53.000448Z

writing all this down, thanks for the code+links!

2016-09-15T01:52:50.000451Z

this seems to be an addon with dirac and devtools included

jrheard 2016-09-15T01:52:57.000452Z

nice

jrheard 2016-09-15T02:55:54.000453Z

@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:

jrheard 2016-09-15T02:55:56.000454Z

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'")

jrheard 2016-09-15T02:57:19.000455Z

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

jrheard 2016-09-15T02:58:24.000457Z

here's what the dirac cljs repl looks like: https://www.evernote.com/shard/s11/sh/56c38e62-e120-49c8-aa41-2436c822d59b/f9c7452ca6b8fdb9

jrheard 2016-09-15T02:58:45.000459Z

thanks again for your help!

jrheard 2016-09-15T02:59:04.000460Z

(couldn't find any variation of "unable to locate sourceMap" in google / github)

jrheard 2016-09-15T02:59:46.000461Z

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

2016-09-15T10:12:54.000473Z

you are not using https://github.com/binaryage/cljs-devtools, I would recommend installing it

2016-09-15T10:19:36.000475Z

I have just tested your project here on my machine with canary 55.0.2861.0 and it works, no sourcemap error

2016-09-15T10:20:43.000479Z

@jrheard ^