Fork me on GitHub
#cider
<
2018-07-02
>
vigilancetech07:07:49

Is there any way to shorten/filter the stack traces in the cider repl? I've tried using small values for cider-stacktrace-print-[level/length] but it doesn't seem to make any difference

bozhidar08:07:25

@vigilancetech Don’t you just get an error message in the REPL, not the whole stacktrace?

vigilancetech08:07:34

@bozhidar that's pretty typical

alexyakushev14:07:20

Is it expected that refactor-nrepl:2.3.1 and cider/cider-nrepl:0.17.0 together crash with java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/util/misc__init.class or cider/nrepl/middleware/util/misc.clj on classpath. ?

dominicm14:07:04

2.4.0-snapshot works with 0.17.0 though

alexyakushev14:07:52

Thank you. I had to pin clj-refactor to melpa-stable repository, otherwise it brings the nightly version of cider as a dependency.

alexyakushev14:07:19

Turns out, it is impossible to use the stable CIDER version with clj-refactor right now.

dominicm14:07:17

0.16.0 works too, yeah.

dominicm14:07:28

Supposedly the refactor snapshots are "surprisingly stable"

André Peric Tavares15:07:59

Is there an easy way of creating a command for making cider evaluate the bindings inside a let as global? Like, if there's (let [b1 c1] ,,,), I want to move the point to let and make it evaluate (def b1 c1), making them available in the current namespace - this will make interactive debugging easier. It's like https://github.com/vvvvalvalval/scope-capture, but more straightforward

richiardiandrea16:07:45

I have this command, it is pretty straightforward and I should PR it to cider and see...not at the keyboard now but will get back to you

bozhidar18:07:07

Yeah, this shouldn’t be very hard to do.

André Peric Tavares19:07:18

Yeap, it looks simple, but I'd have to study a bit about cider internals 😅 Cool, @richiardiandrea. I'm looking forward to seeing it

André Peric Tavares12:07:59

As a learning exercise, here’s my attempt: https://pastebin.com/raw/u2gsWGWp I’d the say macro is OK, but the elisp part is hackish - I use lispy--string-dwim (from the lispy package) for getting the form next to the point and concatenate it with my function. What’s a better way of doing that?

dominicm16:07:01

Doesn't the debugger achieve that?

André Peric Tavares17:07:47

Sort of, but it's not as straightforward as just evaluating all the bindings

martinklepsch18:07:17

Been using inf-clojure for a long time but just trying cider again after having some issues with inf-clojure… and wow, it’s gooooood 🙂 👏

bozhidar18:07:33

@martinklepsch Thanks!

bozhidar18:07:04

I think that @richiardiandrea had a similar revelation lately, which significantly reduced the efforts going into inf-clojure. 🙂

bozhidar18:07:14

> Is it expected that refactor-nrepl:2.3.1 and cider/cider-nrepl:0.17.0 together crash with java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/util/misc__init.class or cider/nrepl/middleware/util/misc.clj on classpath. ?

bozhidar18:07:55

@alexyakushev clj-refactor hasn’t had a new stable release in a very long time. The master is compatible with 0.17 and with the latest CIDER snapshot, not sure about the rest. Unfortunately we don’t sync the releases. The errors you saw are the result of a lot of code being moved from cider-nrepl to orchard.

richiardiandrea18:07:10

Will cider has always been better but I had a requirement for staying in lumo land and no socket REPLs in cider. That was the only reason for me. I am happy to be using it again to be honest.

alexyakushev20:07:40

@bozhidar Thanks, Bozhidar. My main issue here is that CIDER pinned to melpa-stable doesn't stay so because it comes from melpa as a dependency for clj-refactor. I can fix it for myself; but it's just something you'd want to keep in mind when offering to pin CIDER to melpa-stable in the docs.

bozhidar22:07:42

Got it. Unfortunately only @benedek can fix this. AFAIK some problems with Java 9+ halted the clj-refactor releases and we ended up in the current situation.