Fork me on GitHub
#conjure
<
2021-01-17
>
Santiago13:01:20

Hello everyone! been using conjure for a while, nice work 😄 I’ve seen some people saying one cool thing about it is auto-reconnection if the REPL restarts. This does not happen to me e.g. start REPL (separate terminal), start neovim (conjure auto connects), then close REPL, conjure disconnects, then start REPL again in the same port and nothing happens I have to either :ConjureConnect or \cf Did I misread how auto reconnect should work or am I missing a piece of config?

dharrigan17:01:26

If you re-eval your buffer, then it'll reconnect

dharrigan17:01:32

or re-eval a function

dharrigan17:01:22

It won't do it actively, i.e., polling in the background waiting for a .nrepl-port to appear.

Santiago18:01:36

@dharrigan doesn’t work for me. here I closed the REPL and opened again then <leader>er and <leader>eb and Conjure did not reconnect

dharrigan18:01:16

Just tried it again for me, and works. I created a new directory, did vim foo.clj typed in (+ 1 2), then, in a separate terminal, in the same directory, I started a repl (`clj`), then back in vim I did ,eb to eval my buffer, and it connectd to the reply and echo'ed out 3

dharrigan18:01:39

is there a .nrepl-port file in your directory?

Santiago18:01:04

I’m using neovim if that makes any difference

dharrigan18:01:11

I use neovim too

dharrigan18:01:43

Are you up-to-date on the conjure plugin?

Santiago18:01:55

updated just earlier today

Santiago18:01:39

I’ll try a “clean” neovim and add the plugins one by one, sounds like something could be conflicting?

dharrigan18:01:25

sure. Perhaps in the meantime, someone else may have an idea