Fork me on GitHub
#spacemacs
<
2016-08-05
>
porglezomp03:08:57

I’ve had some trouble with every clojurescript setup I’ve tried with Spacemacs and live reloading. What do you all do in terms of getting nREPL working with a live reloader? (With either of boot or lein)

akiva12:08:27

@porglezomp, do you mean something like Figwheel?

porglezomp20:08:44

@akiva: Yeah, like Figwheel, but Figwheel and nREPL is an “advanced configuration” that broke on me last time I tried to set it up. Right now I’m using the boot reloader, but that also seems to break after a while, and start claiming that variables are undefined right before successfully evaluating them.

akiva20:08:42

Ah, I’ve been using Figwheel successfully for a long time through Leiningen. It’s pretty solid now.

akiva20:08:20

I don’t use nREPL with it, though. I keep a separate REPL going for connecting to Spacemacs. I just keep Figwheel humming for CLJS stuff only.

eggsyntax20:08:31

I struggled to get a good figwheel + in-editor cljs repl going (> 1 yr ago, things may have improved, and actually that was with vim+fireplace), and eventually (based on a recommendation from the figwheel author) starting treating the browser as my REPL, and I've been pretty happy with that ever since.

eggsyntax20:08:16

So if I want to eval something, I just add it to the cljs file I'm working on, hit save, and get the answer in the console. Def not as nice as using a clj repl, but it works ok.

eggsyntax20:08:50

Although I've also had good luck more recently with cider + cljs + figwheel.

eggsyntax20:08:11

But it's nice to know you can abandon the struggle without losing too much 😉