Fork me on GitHub
#conjure
<
2020-07-25
>
Anthony Khong13:07:53

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

Olical12:07:56

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.

Olical12:07:58

One day though!

Olical12:07:54

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.

clj 3
Chase14:07:58

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.

Chase14:07:46

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

nate15:07:49

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.

Olical12:07:37

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

Chase16:07:11

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

nate16:07:44

I do, one sec

nate16:07:33

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

nate16:07:53

might be too much, but it does work well

nate16:07:34

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

nate16:07:58

including rebel-nrepl which is similar to what mine does

Chase16:07:08

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.

Chase16:07:41

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

Olical12:07:22

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

Olical12:07:53

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

Olical12:07:36

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

nate16:07:05

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

âž• 3
nate16:07:32

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