Fork me on GitHub
#cider
<
2016-10-14
>
mnewhook00:10:32

I’m trying to get cider-jack-in to work with a ring app… cider-jack-in works but the ring app isn’t started.

mnewhook01:10:30

Erg, even worse. I just updated cider in spacemacs and now I get Could not find artifact cider:cider-nrepl:jar:0.15.0-SNAPSHOT in clojars ()

iku00088802:10:09

@mnewhook For the second issue, seems like that version of cider-nrepl is not up on clojars yet.

bozhidar07:10:38

hmm, guess I forgot to deploy cider-nrepl again

bozhidar07:10:43

had a busy day yesterday

bozhidar07:10:16

@ag never had time to properly investigate this, but it’s definitely something to do with how tools like lein and boot bind the stdout when they start

bozhidar07:10:54

as @arrdem said we tried to implement some logic to forward all the console process’s output to the repl using middleware, but I’m not sure whether this works or not

bozhidar07:10:18

I have very little time for CIDER and can’t really get into more complex issues properly

joost-diepenmaat14:10:59

is there a good way to start a repl (using cider-jack-in or cider-jack-in-clojurescript) and then execute some clojure code from emacs lisp ?

joost-diepenmaat14:10:16

(cider-jack-in) (cider-insert-in-repl "(start)" t)

joost-diepenmaat14:10:55

does not seem to work (looks like cider-jack-in is asynchronous

joost-diepenmaat14:10:31

I think I need/want a callback when the cider-jack-in repl has started

dpsutton14:10:59

you can set the var cider-refresh-before-fn. This function is called when the repl is refreshed

dpsutton14:10:08

I'm not positive that this would be called at initial jack in

dpsutton14:10:20

but you could then issue ,refresh and it would call your function

dpsutton14:10:31

or cider-refresh-after-fn

dpsutton14:10:40

note that these functions must have a zero-arity version

dpsutton14:10:01

You can check cider-refresh-log (sp? a buffer) for results of refreshing, etc

dpsutton14:10:04

Also, its possible that what you want is to launch your clojurescript apparatus after jacking in. This should happen for you

joost-diepenmaat15:10:03

thanks dpsutton I will give it a try

jcsims15:10:54

I'm trying to debug a cljr-clean-ns call that hangs emacs for me. I've gotten as far as I can in Emacs (I think), as it's called nrepl-sync-request with the clean-ns op. What's the best way to start debugging this in refactor-nrepl?

tomjkidd17:10:52

I am trying to debug a project using clojurescript as a dependency. I am getting unexpected behavior when I try to step into sub-dependencies. For example, I am in cljs.closure/compile-file, which calls cljs.compiler/compile-file within it. I have tried using C-u C-M-x to mark both functions, but when I try to use the i command, it does not go into cljs.compiler/compile-file. Any advice?

arrdem17:10:39

@ag if you can post repro instructions forget minimal ones on the cider-nrepl bug tracker I can try to dig into it. I suspect this is gonna be an issue with *out* binding and the fact that we can't/don't set a root binding for dynamic vars most of the time.

arrdem17:10:56

@ag right sorry forgot about that one. If there's other detail you can provide about the specific task you're running that would help.

arrdem17:10:40

@bozhidar when you get a sec, can I get assign access in cider-nrepl so I can mark #381 as mine?

ag17:10:35

@arrdem I have added example of a task

arrdem17:10:43

@ag great thanks.

ag17:10:24

yeah, no problem. thanks for looking into that

arrdem17:10:01

Sure. I think it's a super simple problem to explain, not sure there's a fix tho. Will update the CIDER ticket.

mnewhook23:10:09

what do most people do? Run lein ring server and then cider-connect? Run the ring app manually from the repl?

mnewhook23:10:56

I just tried using cider-connect and I get in the repl output:

WARNING: clj-refactor and refactor-nrepl are out of sync.
Their versions are 2.3.0-SNAPSHOT (package: 20161005.344) and n/a, respectively.
You can mute this warning by changing cljr-suppress-middleware-warnings.