Fork me on GitHub
#cursive
<
2020-04-03
>
jaime20:04:44

Hi! I have two running repl. 1. cljs - started by shadow-cljs 2. clj - started using nrepl.cmdline It seems like when you send form to repl, it is being sent to the active repl window. During development I keep on switching between cljs and clj files. However I keep on hitting "cannot load Clojure form into clojurescrip repl" because the active repl is cljs or the other way, sending form from cljs to active clj repl window How do you manage this?

dvingo19:04:23

I think you just have to click the appropriate repl... I think there's no easy way to determine the intention of the user, given you could have more than 2 open repls and for .cljc files it may not be clear which repl to use. Perhaps for the case where you only have 2 repls (clj, cljs) and the file is .clj or .cljs then the ide could switch for you.

jaime20:04:06

Yeah, I was hoping there is a way to auto switch based on file extension. Well, I guess I have to do it manually for now 🙂