protorepl

john 2017-06-02T19:54:09.460139Z

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.

john 2017-06-02T19:54:18.462960Z

Some kind of figwheel misconfiguration?

john 2017-06-02T20:05:50.670528Z

Yeah, that's what used.

john 2017-06-02T20:06:40.685181Z

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.

rgdelato 2017-06-02T21:01:19.598586Z

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.)

👍 1
mikeb 2017-06-02T21:42:54.172653Z

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

mikeb 2017-06-02T21:44:19.190434Z

from within the clojure repl.

john 2017-06-02T21:44:44.195679Z

Boom

john 2017-06-02T21:44:50.197067Z

shacka lacka

john 2017-06-02T21:45:04.200222Z

Did it from the Proto Repl. Worked there.

john 2017-06-02T21:45:37.207036Z

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

mikeb 2017-06-02T21:46:15.214679Z

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.

john 2017-06-02T21:47:34.230578Z

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

john 2017-06-02T21:47:36.231064Z

Trying now

mikeb 2017-06-02T21:48:13.238304Z

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.

rgdelato 2017-06-02T21:49:43.256495Z

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

john 2017-06-02T21:52:12.285788Z

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

john 2017-06-02T21:53:27.300419Z

hah. works. sweet

john 2017-06-02T21:54:03.307699Z

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

john 2017-06-02T22:00:02.380987Z

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