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.
This will be key: https://github.com/Olical/conjure/wiki/Quick-start:-Fennel-(stdio) swapping to the stdio fennel client
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
But you should be able to launch love2d through that I think?
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
The problem is getting a Fennel REPL up and running, I just remember it not liking a bunch of cases
If you can get a Fennel stdio REPL running inside a love process then it should just work?
Although the better approach might be to launch love2d from a regular fennel / lua REPL, if that's possible?
Hope that helps!
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!
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)
> 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!
Would love to see it!
I think a fennel lib which opens up a REPL on stdin from ANY lua process would also be amazing
> 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.
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
Because Conjure starts the process under neovim for you
Check :h conjure-client-fennel-stdio for how to configure that
I think
I have no clue what I did, but I've got something working :P
Will clean up a bit and share
I haven't checked out your repo properly yet, so I may just be doing the same thing
@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.
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.
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)