conjure

:neovim:+:clj: https://github.com/Olical/conjure - If you're enjoying Conjure and want to say thanks: https://github.com/users/Olical/sponsorship :smile: (alt https://conjure.fun/discord)
dharrigan 2020-09-09T09:13:54.039400Z

One thing I noticed about the new release v4.4.0 is this. Let's say I open up vim and I open a file to edit. Conjure correctly says ""no nRepl port file found." I then launch a repl. Correctly, if I eval the buffer using ,eb, conjure will now connect and attached to the "assumed" session.

dharrigan 2020-09-09T09:14:18.040Z

However, the buffer won't be eval'ed. I have to then do ,eb again to eval the buffer completely.

dharrigan 2020-09-09T09:14:56.040800Z

Should it be like that? Perhaps on connection it should automatically eval the buffer too?

Olical 2020-09-09T09:15:05.041200Z

Ah interesting! I'm pretty sure it does work with individual forms though? Like ,ee

dharrigan 2020-09-09T09:15:12.041600Z

Let me try that

Olical 2020-09-09T09:15:32.042200Z

It should try to eval, realise it doesn't have a connection, connect and THEN continue the eval. That's how it worked during development.

dharrigan 2020-09-09T09:15:34.042500Z

nope

dharrigan 2020-09-09T09:15:35.042700Z

doesn't do it

Olical 2020-09-09T09:15:50.043100Z

Oh! It works on my machine! 😱

dharrigan 2020-09-09T09:15:57.043500Z

Let me double check 🙂

Olical 2020-09-09T09:16:01.043700Z

So perhaps it's a timing issues :thinking_face:

dharrigan 2020-09-09T09:16:37.043900Z

nope

dharrigan 2020-09-09T09:16:50.044300Z

So, closed down everything, launched nvim again

dharrigan 2020-09-09T09:16:56.044600Z

said no port file found

dharrigan 2020-09-09T09:17:00.045Z

started repl

Olical 2020-09-09T09:17:06.045500Z

I reckon it's race condition-y and my work laptop is fast enough.

dharrigan 2020-09-09T09:17:21.045900Z

Oh, I have a pretty fast computer

Olical 2020-09-09T09:17:33.046200Z

Then my laptop is slow enough? Hahaaa

dharrigan 2020-09-09T09:17:35.046500Z

CPU: 6-Core Intel Core i7-8700K (-MT MCP-) speed/min/max: 4598/800/4800 MHz

Olical 2020-09-09T09:17:56.047200Z

I'll take a look soon, I 100% saw it work as expected without fail

Olical 2020-09-09T09:18:07.047700Z

Thanks for the heads up!

dharrigan 2020-09-09T09:18:09.047800Z

Happy to share a screen or summat to help out 🙂

dharrigan 2020-09-09T09:18:10.048Z

np

Olical 2020-09-09T09:18:31.048700Z

I'm on a train to my parents right now so I'll have a little look before it arrives

dharrigan 2020-09-09T09:18:34.048900Z

np

dharrigan 2020-09-09T09:19:37.049200Z

btw, awesome job as always - conjure is great 🙂

2âž•
Olical 2020-09-09T09:22:22.049800Z

Ah, it looks like if it's your first connection to that REPL it doesn't work? On the second connection it works fine for me.

Olical 2020-09-09T09:22:25.050Z

Fun!

Olical 2020-09-09T09:22:30.050200Z

And thank you very much 🙂

Olical 2020-09-09T09:29:00.050400Z

Okay I can see a way around it

Olical 2020-09-09T09:29:27.050800Z

As I roll into the heart of Essex on this pretty empty train 😄

dharrigan 2020-09-09T09:39:38.051100Z

Essex as a source of inspiration 🙂

dharrigan 2020-09-09T09:39:48.051400Z

I hope you're all masked up!

Olical 2020-09-09T09:39:56.051600Z

Of course!

Olical 2020-09-09T09:40:20.052100Z

I haven't been going outside much at all over the recent months, but I've been wearing masks whenever I've had to.

Olical 2020-09-09T09:41:51.052500Z

Damn, I wanted to use lua coroutines but they can't cross C call boundaries 😭

Olical 2020-09-09T09:42:00.052700Z

(Lua has coroutines!)

Olical 2020-09-09T09:49:17.053500Z

May well be fixed on develop 👀

dharrigan 2020-09-09T10:44:04.054100Z

will update. I normally stay on the develop branch 🙂

dave 2020-09-09T13:17:49.055600Z

i always get a little bit jealous when people mention doing work on the train. i wish public transit was decent enough in my part of the world that i could take the train everywhere and have a little productivity time in the process!

dave 2020-09-09T13:19:00.056800Z

i'm able to take the train from city to city in the triangle (central NC), but driving is the norm once you get to the city, so that sort of forces you to drive everywhere anyway

dharrigan 2020-09-09T15:13:16.057Z

Yup

dharrigan 2020-09-09T15:13:33.057400Z

evals the buffer now when I do ,eb after opening editor then launching repl.

dharrigan 2020-09-09T15:13:41.057600Z

thanks Oliver!

1🎉
rafaeldelboni 2020-09-09T16:33:19.059200Z

Hey @olical is possible that the auto-connect is doing a eval auto-require? Because, auto require doesn't work for me and when I try to evaluate a file disconnected I have the same problem I would have if I had the auto require on.

Olical 2020-09-10T08:56:54.060300Z

:thinking_face: I'm really sorry about the inconsistency, I didn't add anything new here so nothing comes to mind, so I guess it's a bug somehow, I'll have a look into this ASAP.

Olical 2020-09-10T10:27:17.060500Z

Interestingly some of my REPLs don't like being started up then auto connected to with like "eval file"

Olical 2020-09-10T10:27:35.060700Z

But if I boot the REPL, give it a little while to start up, connect, then eval it's fine

Olical 2020-09-10T10:27:51.060900Z

So it's almost like firing a bunch of code at a REPL just after it started and you connected can break it?

rafaeldelboni 2020-09-10T16:21:42.061300Z

Maybe

rafaeldelboni 2020-09-10T16:22:01.061500Z

I will test a little bit more

Olical 2020-09-09T18:10:10.059300Z

Hmm nothing new around this, post connection auto require has always been a thing to avoid nREPL complaining about namespaces not existing

Olical 2020-09-09T18:10:32.059500Z

You can turn off auto require if you haven't already? Or you've turned it off and now it's not working?

rafaeldelboni 2020-09-09T18:11:03.059700Z

It's off, but when I do a eval on a disconnected buffer it behaves as it was on

2020-09-09T20:38:46.060Z