Fork me on GitHub
#conjure
<
2020-09-09
>
dharrigan09:09:54

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.

dharrigan09:09:18

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

dharrigan09:09:56

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

Olical09:09:05

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

dharrigan09:09:12

Let me try that

Olical09:09:32

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.

dharrigan09:09:35

doesn't do it

Olical09:09:50

Oh! It works on my machine! 😱

dharrigan09:09:57

Let me double check 🙂

Olical09:09:01

So perhaps it's a timing issues :thinking_face:

dharrigan09:09:50

So, closed down everything, launched nvim again

dharrigan09:09:56

said no port file found

dharrigan09:09:00

started repl

Olical09:09:06

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

dharrigan09:09:21

Oh, I have a pretty fast computer

Olical09:09:33

Then my laptop is slow enough? Hahaaa

dharrigan09:09:35

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

Olical09:09:56

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

Olical09:09:07

Thanks for the heads up!

dharrigan09:09:09

Happy to share a screen or summat to help out 🙂

Olical09:09:31

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

dharrigan09:09:37

btw, awesome job as always - conjure is great 🙂

âž• 6
Olical09:09:22

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.

Olical09:09:30

And thank you very much 🙂

Olical09:09:00

Okay I can see a way around it

Olical09:09:27

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

dharrigan09:09:38

Essex as a source of inspiration 🙂

dharrigan09:09:48

I hope you're all masked up!

Olical09:09:56

Of course!

Olical09:09:20

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

Olical09:09:51

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

Olical09:09:00

(Lua has coroutines!)

Olical09:09:17

May well be fixed on develop 👀

dharrigan10:09:04

will update. I normally stay on the develop branch 🙂

dave13:09:49

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!

dave13:09:00

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

dharrigan15:09:33

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

dharrigan15:09:41

thanks Oliver!

🎉 3
rafaeldelboni16:09:19

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.

Olical18:09:10

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

Olical18:09:32

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

rafaeldelboni18:09:03

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

Olical08:09:54

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

Olical10:09:17

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

Olical10:09:35

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

Olical10:09:51

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

rafaeldelboni16:09:01

I will test a little bit more