Fork me on GitHub
#lein-figwheel
<
2017-09-11
>
cjhowe02:09:44

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

cjhowe02:09:33

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

danielcompton02:09:08

@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

cjhowe02:09:53

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

danielcompton02:09:06

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

danielcompton02:09:16

so server side CLJ might be better in a separate dir

danielcompton02:09:30

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

danielcompton02:09:38

and then put clj macro files in src/cljs

cjhowe02:09:24

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

cjhowe02:09:56

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

cjhowe02:09:00

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

danielcompton03:09:38

Not sure about cider sorry

danielcompton03:09:52

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

cjhowe04:09:24

i think i just had to do lein clean

cjhowe04:09:39

next time i'm starting with that, lol

cjhowe05:09:36

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

cjhowe05:09:00

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