I’m having trouble with Conjure and Figwheel. I run :ConjurePiggieback
to start the connection and it seems to work, but I can’t seem to reliably eval stuff unless I manage to somehow create a session. I thought I had sessions figured out but <localleader>sl
doesn’t seem to do anything (it did before, but I can’t seem to get back there).
Any tips?
Hmm, nREPL session issues can sometimes be fixed with a <localleader>sQ
to close all sessions and assume a new one.
Although that session is the thing that had your ClojureScript environment set up :thinking_face:
Then you'll end up back in Clojure land.
I think piggieback essentially creates a session that has CLJS hooked up, or converts your existing one.
I'll have to see if I can reproduce this... any time I've worked with cljs it's been through shadow-cljs, so I've tested that route far more.
It seems to be intermittent. I restarted everything and refreshed the browser and everything seems to be back to normal.
I think perhaps the whole thing gets hung up if Figwheel isn’t connected to the browser when I run :ConjurePiggieback
Yeah, that’s it. Looks like Figwheel blocks while waiting for the browser, and any other Conjure commands queue up waiting for it.
Thanks for being the rubber duck!
BTW other than my confusion, the session model in Conjure is awesome! I’m doing a lot of work in .cljc
files and it’s great to see clearly whether my evals are going to Clojure or CLJS. Thanks!
Ohh interesting, so it's all good now when the browser is ready?
I'm glad! 😄
Yeah, once the browser connects to Figwheel everything starts working again. Kinda makes sense in retrospect but there’s no visibility of the state. It would have been nice if Figwheel had blurted out “waiting for browser to connect” or some such.
Nice! Yeah there's no feedback from figwheel, I don't think shadow tells you either but they may have considered some sort of nREPL message when a client connects :thinking_face:
And you need a runtime (browser) to run any CLJS
Otherwise it's compiled but sent to the void
So glad it's working!
Feedback in #conjure is welcome!
And there's also https://conjure.fun/discord