Fork me on GitHub
#protorepl
<
2017-06-02
>
john19:06:09

Trying to get figwheel going via nrepl. The terminal says it's running an nrepl on 7002 and then drops me into a cljs repl when the browser hits 3449. When protorepl's nrepl client connects to 7002 though, it seems I have jvm clojure repl going. And only my macro (.clj) file is reloading.

john19:06:18

Some kind of figwheel misconfiguration?

john20:06:50

Yeah, that's what used.

john20:06:40

And it connects, and I have a repl. It's just a Clojure one. Not the ClojureScript one. But the ClojureScript one is running in the terminal, which is also hosting the nrepl server... Strange.

rgdelato21:06:19

Weird. Huh. If you're not getting any errors, I'm not sure what the issue is. (Hopefully, we'll be able to properly launch/quit Figwheel from Proto REPL really soon rather than using a remote connection.)

mikeb21:06:54

@john try this (use 'figwheel-sidecar.repl-api) (cljs-repl)

mikeb21:06:19

from within the clojure repl.

john21:06:50

shacka lacka

john21:06:04

Did it from the Proto Repl. Worked there.

john21:06:37

I probably need that in some dev.clj file, huh?

mikeb21:06:15

That's the doc link. I don't think there's any way to automatically have that executed. If you find a way please let me know.

john21:06:34

Yeah, looks like those functions are defined in dev/user.clj and just adding (cljs-repl) to the end should work.

john21:06:36

Trying now

mikeb21:06:13

The whole cljs repl thing is seems a bit complicated at the moment.. would be cool to have a single solution that know which type of code block it was exectuting.. clj goes to jvm, cljs goes to js and cljc goes to both.

rgdelato21:06:43

ah, I forgot about that. And yeah, you can save that command to your init.js/`init.coffee` file: https://github.com/jasongilman/proto-repl/blob/master/extending_proto_repl.md

john21:06:12

dev/user.clj isn't actually getting loaded for me. Probably a figwheel config in the project.clj

john21:06:27

hah. works. sweet

john21:06:03

well, not the dev/user.clj yet. But ProtoRepl is cooking some CLJS. Nice!

john22:06:02

Are the folks that work on ProtoRepl here? Is there a ToDo list or future work listed somewhere?