Fork me on GitHub
#cider
<
2019-05-31
>
rickmoynihan11:05:20

Given that tools.deps doesn’t support :injections like lein, would it make sense for nrepl to offer such a feature?

dominicm15:05:08

Via the -m option?

dominicm15:05:16

Unless I'm misunderstanding?

rickmoynihan15:05:46

do you mean clojure cli’s -main or nrepl’s -middleware options? AFAIK neither of those are the same as :injections… though a middleware could certainly provide a similar capability.

dominicm15:05:08

What is injections?

dominicm15:05:15

I must not know what it is

rickmoynihan15:05:45

forms that get wrapped over every repl interaction

dominicm15:05:08

Oh, how did lein provide that?!

dominicm15:05:35

@ guessing you might have a guess? I can only assume it's a form of middleware

rickmoynihan15:05:38

actually scratch that — I don’t understand injections… they’re not quite what I thought

rickmoynihan15:05:24

I think they get executed when evaluating of project.clj

rickmoynihan13:05:35

Interesting… Isn’t that about letting the nrepl server access resources from the client? I’m not sure I see the connection…

rickmoynihan13:05:13

though such a powerful feature could surely enable a lot of things

bozhidar13:05:05

We have to wrap this up at some point, as it’s an extremely important feature.

dpsutton13:05:13

it appears reid has taken down http://conj.io/grimoire

bozhidar13:05:31

> it appears reid has taken down http://conj.io/grimoire

dpsutton13:05:45

hoping we can get it transferred to some entity still active in clojure and keep it going.

bozhidar13:05:55

I’ll ask him about this. I think he abandoned it a while ago and probably decided to pull the plug on it.

dpsutton13:05:22

yes this morning. daniel compton and i have emailed him about taking over it. I sent a follow up this morning as its been a while. feel free to ping him as well

bozhidar13:05:02

Btw, this might also be a good thing, as it means more cohesion on docs front.

bozhidar13:05:46

I don’t know. I liked http://conj.io, but https://clojuredocs.org/ was always way more popular.

bozhidar13:05:59

Sometimes it’s better to focus more efforts on fewer things.

orestis14:05:19

When I first arrived in Clojure, it was a little bit overwhelming with many different community-based efforts on docs. Clojure Docs was the best for me, if only because of the comments.

orestis14:05:45

It’d be nice if old links were still around though…

bozhidar14:05:43

No argument from me. 🙂

bozhidar14:05:31

I just know Reid put a lot of efforts in http://conj.io and unfortunately they didn’t pay off. If i recall the story correctly he started the project at the time when https://clojuredocs.org/ was dormant, but then it was revived and this killed the interest in Grimoire.

bozhidar14:05:36

@dpsutton He confirmed he was done with http://conj.io. He had written about this on Twitter, but I hadn’t seen this. Anyways, the ball is yours now.

nickstares015:05:01

Not sure if this is the right place to ask this question, but cljr-find-usages does not work for me in clj-refactor 2.4.0 (package: 20190516.1254), refactor-nrepl 2.4.0-SNAPSHOT

nickstares015:05:25

Should it work immediately after evaluating a buffer?

bozhidar15:05:43

@dpsutton http://conj.io is back. 🙂 Reid just fixed it.

dpsutton15:05:18

i don't know what the celebrate emoji is 😞

dpsutton15:05:34

haha thanks!

dpsutton15:05:58

i was looking for :huzzah:

mikerod17:05:03

when using cider-jack-in-clj&cljs with figwheel, it doesn’t seem that it respects project.clj config of the form:

:figwheel {:init user/restart
           :destroy user/shutdown
           :css-dirs ["resources/public/css"]}
which is figwheel server side startup config. Is this true?

mikerod17:05:25

I know jack-in is doing this

"(do (require 'figwheel-sidecar.repl-api) (figwheel-sidecar.repl-api/start-figwheel!) (figwheel-sidecar.repl-api/cljs-repl))"

mikerod17:05:47

now I’m wondering if perhaps figwheel-sidecar.repl-api/start-figwheel! doesn’t automatically look at this config

mikerod17:05:31

I think it doesn’t

mikerod17:05:34

So that may solve that

mpdairy19:05:21

does anybody know how to truncate long spec explain messages in cider?

ghadi19:05:41

to be clear, it's not the message, but the ex-data

mpdairy19:05:19

oh yeah, the ex-data is way too long sometimes

ccann20:05:56

does anyone know how to add annotations to the company completions? the docs suggest they should be on by default, but I just get the following:

ccann20:05:38

cider-annotate-completion-candidates is t and cider-completion-annotations-alist has a bunch of kv pairs in the alist

bozhidar21:05:03

@ccann Are you using company-mode for completions?

ccann21:05:54

via (global-company-mode)

bozhidar21:05:19

Hmm, then they should be there. Super weird.

ccann14:06:48

turns out this was to do with the lispy package. It overrides the CIDER behavior. Not quite sure how to resolve that unfortunately.

mitchell_clojure01:06:37

I think this is a pretty big issue with lispy. As far as I know, there is no way to just get the "text editing" features without the "IDE-like feactures". It seems to cause a lot of subtle issues like this

ccann18:06:13

agreed, this isn’t the first issue I’ve had

bozhidar21:05:37

@mpdairy Can you post some screenshot?

ccann21:05:49

I tried toggling cider-annotate-completion-candidates to off and it has the same behavior as when it’s on