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.
Some kind of figwheel misconfiguration?
Yeah, that's what used.
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.
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.)
@john try this (use 'figwheel-sidecar.repl-api) (cljs-repl)
from within the clojure repl.
Boom
shacka lacka
Did it from the Proto Repl. Worked there.
I probably need that in some dev.clj file, huh?
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.
Yeah, looks like those functions are defined in dev/user.clj
and just adding (cljs-repl)
to the end should work.
Trying now
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.
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
dev/user.clj isn't actually getting loaded for me. Probably a figwheel config in the project.clj
hah. works. sweet
well, not the dev/user.clj yet. But ProtoRepl is cooking some CLJS. Nice!
Are the folks that work on ProtoRepl here? Is there a ToDo list or future work listed somewhere?