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)
harryvederci 2021-04-13T16:38:59.066Z

Long shot: has anyone here had success connecting Conjure to a https://love2d.org/ fennel game? I've done it with emacs as in https://gitlab.com/alexjgriffith/min-love2d-fennel repo, but I kinda.. don't want to use emacs 😛 Edit: experimental but working repo is https://git.sr.ht/~harryvederci/love2d-fennel-fp-boilerplate. Contains a lot of unneccessary stuff though.

Olical 2021-04-13T16:43:33.066300Z

This will be key: https://github.com/Olical/conjure/wiki/Quick-start:-Fennel-(stdio) swapping to the stdio fennel client

Olical 2021-04-13T16:43:56.066500Z

I think I almost had something working (or it is working?) on a laptop :thinking_face: but I need to go dig it out, not sure why I haven't pushed it, maybe it never worked

Olical 2021-04-13T16:44:05.066700Z

But you should be able to launch love2d through that I think?

Olical 2021-04-13T16:55:16.067100Z

Yeah, looks like it doesn't work properly but it's not far off? Might help! I just pushed what was in the directory, not sure how long ago I was fiddling with this https://github.com/Olical/conjure-loves-fennel

Olical 2021-04-13T16:55:40.067400Z

The problem is getting a Fennel REPL up and running, I just remember it not liking a bunch of cases

Olical 2021-04-13T16:55:57.067600Z

If you can get a Fennel stdio REPL running inside a love process then it should just work?

Olical 2021-04-13T16:56:16.067800Z

Although the better approach might be to launch love2d from a regular fennel / lua REPL, if that's possible?

Olical 2021-04-13T16:56:28.068Z

Hope that helps!

harryvederci 2021-04-13T16:57:26.068200Z

Thanks @olical! Yeah that's the thing. I can get fennel running, but then I'm not sure how to hook that up with love2d. Big brain stuff! Will look into that repo you just shared, thanks!

Olical 2021-04-13T16:58:51.068400Z

I feel like the commit before the latest one may have worked better? But honestly just needs some experimentation, I remember it working to some extent but it just needs some Fennel REPL love or just come at it from the other end: Running love from a fennel REPL (if this is doable, that's ideal imo)

harryvederci 2021-04-13T17:00:17.068600Z

> Running love from a fennel REPL (if this is doable, that's ideal imo Yeah that's what I'm hoping for as well! This stuff is not like anything I'm used to, so expect nothing, but if I do get something to work I'll definitely share!

Olical 2021-04-13T17:00:32.068800Z

Would love to see it!

👍 1
🇺🇸 1
Olical 2021-04-13T17:00:59.069100Z

I think a fennel lib which opens up a REPL on stdin from ANY lua process would also be amazing

harryvederci 2021-04-13T17:13:08.069300Z

> If you can get a Fennel stdio REPL running inside a love process then it should just work? I've got that working https://git.sr.ht/~harryvederci/love2d-fennel-fp-boilerplate, but Conjure isn't aware of the fact that it's running then.

Olical 2021-04-13T17:16:00.069500Z

Ah okay. Well if it's running on stdio, you can use the stdio client and then configure the client to run the command you need to start it

Olical 2021-04-13T17:16:09.069700Z

Because Conjure starts the process under neovim for you

Olical 2021-04-13T17:16:22.069900Z

Check :h conjure-client-fennel-stdio for how to configure that

Olical 2021-04-13T17:16:23.070100Z

I think

harryvederci 2021-04-13T17:29:12.070300Z

I have no clue what I did, but I've got something working :P

harryvederci 2021-04-13T17:29:31.070500Z

Will clean up a bit and share

harryvederci 2021-04-13T17:30:05.070700Z

I haven't checked out your repo properly yet, so I may just be doing the same thing

harryvederci 2021-04-13T17:45:00.070900Z

@olical I've pushed to the https://git.sr.ht/~harryvederci/love2d-fennel-fp-boilerplate. Workflow: run nvim start.fnl , then follow the instructions at the bottom of that file on live code evaluation.

harryvederci 2021-04-13T17:47:10.071100Z

If you see "love ." stopped appear in the Conjure output, that's probably due to a segmentation error, I think that's just because of my messed up code. Restarting it a bunch of times will load it successfully at some point.

harryvederci 2021-04-13T22:14:25.072500Z

I've tried to also make this work with your conjure-loves-fennel repo, with no success just yet. I may have some time again later this week, but also feel free to check out my https://git.sr.ht/~harryvederci/love2d-fennel-fp-boilerplate to see if you can figure out what I'm apparently doing correctly there. (I have no idea what I'm doing :P)