Fork me on GitHub
#cider
<
2019-06-24
>
didibus00:06:25

Is there an easy way to get the full tools.deps command to use to start a similar as cider-jack-in nRepl manually?

didibus00:06:32

It seems it uses cider-jack-in-dependencies and cider-jack-in-lein-plugins for the deps.edn content. And then it calls -m nrepl.cmdline with the options from cider-jack-in-nrepl-middlewares

dpsutton00:06:48

look in *Messages*

didibus00:06:55

Ya, I was confused by the ... at the end, but it doesn't seem like it is truncated even though it shows ...

dpsutton00:06:09

i think we've all be confused by that

dpsutton00:06:26

i think its meant to show progress but it always indicates that more is there to me

didibus00:06:43

ya, I think you're right, it means, please wait

dpsutton00:06:17

(defun cider-copy-jack-in-command ()
  (interactive)
  (let ((cider-jack-in-dependencies (append cider-jack-in-dependencies cider-jack-in-cljs-dependencies))
        (cider-jack-in-lein-plugins (append cider-jack-in-lein-plugins cider-jack-in-cljs-lein-plugins))
        ;;(cider-jack-in-nrepl-middlewares (append cider-jack-in-nrepl-middlewares cider-jack-in-cljs-nrepl-middlewares))
        (orig-buffer (current-buffer)))
    (kill-new (plist-get (cider--update-jack-in-cmd (cider--update-project-dir '()))
                         :jack-in-cmd))))
i made this a while back. should copy your jack in command. I don't think its cljs aware yet though

dpsutton00:06:30

ha, yeah. its just commented out lol

pyr09:06:29

Hi there! Do any of you have workflows to work with taps in emacs + cider?

pyr09:06:41

Had a look at https://www.youtube.com/watch?v=UFY2rd05W2g&amp;feature=youtu.be and it made it seem like a tap receiving buffer would be awesome 🙂

pyr09:06:04

Happy to look into how to do that, it's a bit unclear what belongs where (orchard/cider-nrepl/cider) to me right now. Naively a middleware that runs tap< and produces messages over the repl that can be interpreted by a cider extension would sound like the approach

pyr09:06:26

Looking at it, it seems the nrepl side of things is having a def-wrapper of the sort: https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl.clj#L390-L398

mgrbyte12:06:33

(Apologies in advance, am sure this one's getting very old) On: emacs 26.2.90, cider 0.22.0snapshot, getting this:

WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.5.0-SNAPSHOT (package: 20190618.716) and n/a, respectively.
You can mute this warning by changing cljr-suppress-middleware-warnings.
Tried following the suggestions in the docs, but can't get rid of it (I've put (setq-default cljr-inject-dependencies-at-jack-in nil) in my emacs setup). I'm guessing using cider 0.22.0 would fix, but can't convince package-el to install it. (pinning to stable gives me 0.21.0) Anyone know what I should/could do?

dpsutton13:06:02

Got a bunch of PRs up. Was hoping we could 1) merge Orchard PR and create release 2) bump orchard version in cider-nrepl 3) merge cider-nrepl PRs and make a release 4) merge CIDER PR and bump the cider-nrepl version it requests

dpsutton13:06:25

also http://conj.io is down 😞

bozhidar14:06:04

@dpsutton Thanks for the fixes!

bozhidar14:06:45

I’ll try to find some time to review and merge those and I’ll issue the new alphas. There are also a couple of small tweaks by @richiardiandrea that I want to squeeze in the next build.

dpsutton14:06:57

definitely! Want to improve documentation viewing after seeing Cursive. I pinged reid on twitter about http://conj.io but no response. I hope the site doesn't become more of a chore as his interest seems thin 😕

richiardiandrea14:06:19

Will try to address the PR feedback this week

bozhidar14:06:57

:thumbsup: Once we’re ready with this and we figure out the boot breakage I might even cut a new CIDER release.

bozhidar14:06:01

It has been a while…

bozhidar14:06:19

> definitely! Want to improve documentation viewing after seeing Cursive.

bozhidar14:06:44

@dpsutton For a while I wanted us to do more with overlays for inline docs and so on, but I never got to doing so.

bozhidar14:06:49

Shouldn’t be hard, though.

dpsutton14:06:56

the apropos viewer is nice! not sure who made it but i like it. it included all the inline deps so its way to chatty to be useful right now though

bozhidar14:06:37

@dpsutton We just borrowed the interface from Emacs’s own apropos for Emacs Lisp. I definitely like the UI.

bozhidar14:06:30

I also wanted us to support inline macroexpansion and tracing.

dpsutton14:06:34

yeah i've accidentally done emacs-lisp apropos on a few things instead of cider apropos 🙂 and yeah i followed. Cursive does clojuredocs inline in a popup with syntax highlighted examples and it is quite useful (and quick!)

dpsutton14:06:27

i think lispy mode does this for documentation?

bozhidar14:06:47

Maybe. There are a few generic Emacs packages that provide this, I just never had the time to play with them.

dpsutton15:06:15

the yellow doc is displayed inline and then goes away

dpsutton15:06:28

but i think there's a better true "popup" solution?

bozhidar17:06:45

Maybe. I don’t I’ve seen many real popups in Emacs, though (probably because Emacs UIs have to work in a terminal as well). Overlays are still a reasonable option, though.