cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
practicalli-john 2020-11-10T02:08:31.418600Z

Use the http://cider.mx docs if you dont want a community configuration like Spacemacs For those that use Spacemacs, I wrote a book to make the most out of it https://practicalli.github.io/spacemacs/ Unfortunately that seems of less relevance to you I am afraid. Otherwise use prelude, especially if you want just the Emacs keybindings rather than Vim/Evil approach.

👍 1
practicalli-john 2020-11-10T13:27:56.421600Z

Using Reveal data visualisation with Cider Reveal can visually represent data as charts as well as text, tables, etc. There is even a chessboard example on https://vlaaad.github.io/reveal/ I've added several configuration options for using Reveal with Cider, for both cider-connect and cider-jack-in https://practicalli.github.io/clojure/clojure-tools/data-browsers/reveal.html

👏 3
🦜 3
3
timsgardner 2020-11-10T23:22:58.423200Z

#break never works for me. I don't know what I'm doing wrong

dpsutton 2020-11-10T23:24:54.423500Z

can you try this simple example and eval it?

dpsutton 2020-11-10T23:25:03.424Z

(let [x 3]
  #break (+ x 1))

timsgardner 2020-11-10T23:26:56.424300Z

huh, that works @dpsutton

dpsutton 2020-11-10T23:32:12.426200Z

Then to cover the basics, are you evaling the form after adding the tag?

timsgardner 2020-11-10T23:32:17.426300Z

but if i have this in a source file:

(defn glorp []
  (let [x 3]
    #break (+ x 1)))
and run (glorp) from a repl I just get 4, no break

timsgardner 2020-11-10T23:32:21.426500Z

yeah

timsgardner 2020-11-10T23:32:52.427Z

^ in that example I ran cider-load-buffer in the buffer with the breakpoint

timsgardner 2020-11-10T23:33:39.427400Z

if I define it in the repl with the breakpoint and then run it, it works

dpsutton 2020-11-10T23:34:55.428300Z

What if you leave it in the source buffer but just eval the single defn and then call it?

timsgardner 2020-11-10T23:35:50.428500Z

hm that works

timsgardner 2020-11-10T23:36:14.429Z

though when I press q I get a NullPointerException (for forms defined in the repl too)