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)
2020-07-25T11:19:54.016500Z

Anthony Khong 2020-07-25T13:50:53.017200Z

@olical, are you going to apply to Clojurists Together? The applications are still open: https://www.clojuriststogether.org/news/q3-2020-survey-results/

Olical 2020-07-26T12:09:56.031800Z

Thanks for the heads up! I wasn't planning on this time around since I recently started a new job, I won't be able to justify a mini sabbatical this early on I don't think.

Olical 2020-07-26T12:09:58.032Z

One day though!

Olical 2020-07-26T12:10:54.032200Z

For now sponsorships are really helping my motivation, I'd eventually slide my time to be 80% workwork and 20% Conjure / OSS anyway, I used to work 4 days a week and I'd like to go back to that eventually.

1
Chase 2020-07-25T14:45:58.020700Z

I've been having an issue where I start a repl but Conjure isn't able to make an automatic connection like usual. I can't narrow it down to when yet but if I exit nvim and start a fresh session and do it again it works as intended. It's happening in my lein and deps.edn projects. How do I make it so those nrepl's are populating the .nrepl-port file with a default port or whatever? I hate having to go see what the random nrepl port is and using that with the :ConjureConnect command.

Chase 2020-07-25T14:46:46.021500Z

Do I create that .nrepl-port file myself or can I change my .lein/profiles.clj and .clojure/deps.edn setups to do all this automatically

nate 2020-07-25T15:58:49.023600Z

lein repl should do it automatically. deps.edn is a little more work. I have an alias that starts a repl and writes that file.

Olical 2020-07-26T12:14:37.033100Z

--interactive should create the .nrepl-port file from clj cli fwiw 🙂 https://clojurians.slack.com/archives/CK143P6D7/p1595765542032500

Chase 2020-07-25T16:00:11.024200Z

Do you happen to have your dotfiles online? I would like to add that to my repl alias too.

nate 2020-07-25T16:01:44.024500Z

I do, one sec

nate 2020-07-25T16:13:33.025700Z

it uses a small bit of code I wrote to make starting up nrepl/socket repl/rebel

nate 2020-07-25T16:13:53.026200Z

might be too much, but it does work well

nate 2020-07-25T16:15:34.026700Z

this looks like a good collection of more general aliases: https://github.com/practicalli/clojure-deps-edn/blob/master/deps.edn

nate 2020-07-25T16:15:58.027300Z

including rebel-nrepl which is similar to what mine does

Chase 2020-07-25T16:18:08.028100Z

Ok, yeah, thank you. So you are pulling in a whole self made dependency to do the work. That is cool but might be a bit much for me. I'll explore through this.

Chase 2020-07-25T16:18:41.028400Z

Have you tried vim-jack-in for such things?

Olical 2020-07-26T12:12:22.032500Z

From my experience vim-jack-in works great for this and does write the port. Here's the args I use for clojure cli (without the deps.edn part but still)

clj -A:nrepl:cider \
    -m nrepl.cmdline \
    --middleware "[cider.nrepl/cider-middleware]" \
    --interactive

Olical 2020-07-26T12:12:53.032700Z

I have a feeling the interactive flag ensures the .nrepl-port file is created?

Olical 2020-07-26T12:13:36.032900Z

As for lein, is should definitely make the file :thinking_face:

nate 2020-07-25T16:19:05.028800Z

I haven't. I prefer to manage my repl from another tmux pane

âž• 1
nate 2020-07-25T16:27:32.029700Z

although it looks like from reading the vim-jack-in source, it should be writing the .repl-port file