vim

For discussion on all things (neo)vim.
2020-08-29T16:32:51.007400Z

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

2020-08-29T16:33:45.008300Z

Any tips?

Olical 2020-08-29T16:38:39.008500Z

Hmm, nREPL session issues can sometimes be fixed with a <localleader>sQ to close all sessions and assume a new one.

Olical 2020-08-29T16:38:54.008700Z

Although that session is the thing that had your ClojureScript environment set up :thinking_face:

Olical 2020-08-29T16:39:04.008900Z

Then you'll end up back in Clojure land.

Olical 2020-08-29T16:39:20.009100Z

I think piggieback essentially creates a session that has CLJS hooked up, or converts your existing one.

Olical 2020-08-29T16:39:51.009300Z

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.

2020-08-29T16:44:35.009500Z

It seems to be intermittent. I restarted everything and refreshed the browser and everything seems to be back to normal.

2020-08-29T16:45:14.000100Z

I think perhaps the whole thing gets hung up if Figwheel isn’t connected to the browser when I run :ConjurePiggieback

2020-08-29T16:53:34.000300Z

Yeah, that’s it. Looks like Figwheel blocks while waiting for the browser, and any other Conjure commands queue up waiting for it.

2020-08-29T16:54:08.000500Z

Thanks for being the rubber duck!

2020-08-29T16:55:47.000700Z

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!

Olical 2020-08-29T17:26:32.001Z

Ohh interesting, so it's all good now when the browser is ready?

Olical 2020-08-29T17:26:37.001200Z

I'm glad! 😄

2020-08-29T17:50:42.001400Z

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.

Olical 2020-08-29T18:04:45.001600Z

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:

Olical 2020-08-29T18:04:54.001800Z

And you need a runtime (browser) to run any CLJS

Olical 2020-08-29T18:05:04.002Z

Otherwise it's compiled but sent to the void

Olical 2020-08-29T18:05:14.002200Z

So glad it's working!

Olical 2020-08-29T18:05:24.002400Z

Feedback in #conjure is welcome!

Olical 2020-08-29T18:07:36.002600Z

And there's also https://conjure.fun/discord