Fork me on GitHub
#cider
<
2017-06-05
>
benedek05:06:12

clj-refactor and refactor-nrepl 2.3.1 is out. thanks for all the contributors, quite a few of them are @here ;)

gmercer09:06:04

I was sure that for the last month or so that whenever I did cider-jack-in on clj/cljs project it started both repls - Have I gone insane OR has this changed recently ?

gmercer09:06:16

I have updated cider .. for the record

gmercer09:06:27

other way around - cider-jack-in-clojurescript will start both - hmm ...

bozhidar09:06:16

> I was sure that for the last month or so that whenever I did cider-jack-in on clj/cljs project it started both repls - Have I gone insane OR has this changed recently ?

bozhidar09:06:27

It never worked like this and this wasn’t changed recently.

gmercer10:06:50

@bozhidar thanks - just a memory lapse 😃

rmuslimov21:06:28

I have question about debugging with cider. Why if function is wrapped within def statement it doesn’t allow debugging in cider? For example, check next few lines of code:

(defn target
  [x]
  (let [a (+ x 1)
        b (inc a)]
    (+ (/ b 1) 4)))

(defn wrap-nothing
  "This function does nothing, just for example."
  [f]
  (fn [& args]
    (apply f args)))

(def test (wrap-nothing target))

(test 3)    ;; debugging of `target` is not working
(target 3)  ;; debugging of `target` works if this executed
If I set cider-debug-defun-at-point in target function, and call test debugger won’t stop. But it should actually. Why?

grzm21:06:31

good afternoon. I'm trying to extend a Java class in Clojure, so I'm using (:gen-class) in my namespace declaration. I haven't figured out how to work with this in a Cider repl. Here's what I'm working with:

(ns ex.Example
  (:gen-class))

(defn -toString
  [this]
  "Hello, World!")

grzm21:06:40

I get a ClassNotFoundException when I try to instantiate it, e.g., (ex.Example.). I get java.lang.ClassCastException when I try to compile it via (compile 'ex.Example)

dpsutton21:06:12

i'm not sure that you've hit any CIDER issues to be honest

grzm21:06:18

I'm sure I'm missing something quite basic, but my google-fu is failing me.

dpsutton21:06:25

i've seen lots of people say to tiptoe around (:gen-class)

dpsutton21:06:33

may want to ask in #clojure

grzm21:06:18

Okay. I'll give that a shot as well.

grzm21:06:29

Was it wrong to think that the #cider channel would be useful for using Cider, as opposed to finding bugs or other issues with Cider?

dpsutton21:06:54

not necessarily

dpsutton21:06:09

happy to help with how to interact with CIDER and get you up and running

dpsutton21:06:32

but this into the kinda shady dark corners of clojure and I don't think I can help and I think that lots of people there will be able to help you

dpsutton21:06:46

but i'm never too strict on rooms and topics. ask anywhere

dpsutton21:06:55

i'm just pointing to where you'll get better help in this case

grzm21:06:37

Gotcha. Cider is my go-to IDE and I do use it successfully for other things.