lein-figwheel

2017-09-11T02:04:44.000137Z

anyone know why figwheel won't work when i call it from emacs? works with lein figwheel, but when I run it in emacs, i get the following error starting up sidecar: https://gist.github.com/cjhowe7/61144cfb8d3c1429cdabeab2871df4bc

2017-09-11T02:07:33.000051Z

i'm on the latest version, so i really don't understand why sidecar isn't working...

danielcompton 2017-09-11T02:24:08.000077Z

@mitchelkuijpers when I see that error it's because I haven't required the namespace in the rest of my app, not sure about modules though

2017-09-11T02:31:53.000112Z

is it a problem to put clj files and cljs files in the same directory?

danielcompton 2017-09-11T02:38:06.000152Z

@cjhowe clj files will be treated as macros to be compiled I think

danielcompton 2017-09-11T02:38:16.000132Z

so server side CLJ might be better in a separate dir

danielcompton 2017-09-11T02:38:30.000060Z

usually I have src/clj, src/cljc, src/cljs

danielcompton 2017-09-11T02:38:38.000061Z

and then put clj macro files in src/cljs

2017-09-11T02:39:24.000169Z

see, i had that in my source, but i got rid of it because i want it to be easy to make sure my namespaces don't overlap

2017-09-11T02:39:56.000082Z

like, having both src/clj/core.clj and src/cljs/core.cljs isn't a good idea, right?

2017-09-11T02:41:00.000146Z

at the very least it makes cider-find-ns weird

danielcompton 2017-09-11T03:13:38.000038Z

Not sure about cider sorry

danielcompton 2017-09-11T03:13:52.000096Z

but if src/clj isn't in your figwheel/cljsbuild config, then it shouldn't matter

2017-09-11T04:22:24.000135Z

i think i just had to do lein clean

2017-09-11T04:22:39.000075Z

next time i'm starting with that, lol

2017-09-11T05:11:36.000089Z

(in case anyone sees this in the future, i think you need to lein clean when you change clojure(script) versions)

2017-09-11T05:28:00.000095Z

it's my clojure version. 1.9.0-alpha20 doesn't work well for some reason. 1.9.0-alpha19 works fine