Questions tagged [cider]

Cider is a mode for interacting with Clojure. As Slime does for Common Lisp, Cider does for Clojure.

32 questions
7
votes
2 answers

How can I quickly switch between source namespace and test namespace?

In Cider, I can use C-c , to run the tests for the current namespace. This will work whether I'm currently in the source namespace or the test namespace itself (and indeed, this magic behavior is discussed in detail in the README). Given that Cider…
Sam Estep
  • 449
  • 5
  • 20
5
votes
1 answer

CIDER, how to fix "No cljs REPLs in current session" error

I'm editing a ClojureScript file, and I have a working ClojureScript REPL in another buffer. But when I try to evaluate a form in my file ui.cljs, with C-c C-c, I get a beep an a message in the mini-buffer that says No cljs REPLs in current…
Rob N
  • 547
  • 2
  • 12
5
votes
3 answers

Running all tests in a leiningen project?

Is there a way, via cider or some other emacs extension, to run all of the tests in a leiningen project? cider has the function cider-test-run-tests which attempts to just run the tests related to the code in the current buffer. That's fine, but…
abingham
  • 927
  • 6
  • 18
5
votes
1 answer

cider-jack-in: Symbol's function definition is void: clojure-project-dir

When I run cider-jack-in the following error appears. Symbol's function definition is void: clojure-project-dir I am very new to Emacs and this is totally stumping me. Let me know if you need more information and I will provide.
Jason Basanese
  • 215
  • 2
  • 7
4
votes
1 answer

Is it possible on Cider to eval on a repl and print as a comment every evaluation on a buffer?

If I want to demonstrate something, is it possible that I can run a command on cider and it prints after each line the result of evaluating that line ? (def xx {:a "a" :b "b"}) (:a xx) (:c xx []) And, after running (something similar to): (def xx…
Rodrigo Flores
  • 275
  • 1
  • 7
4
votes
7 answers

cider-jack-in: Symbol's function definition is void: clojure-project-dir with closure-mode installed

M-x (cider-jack-in) cider-jack-in: Symbol's function definition is void: clojure-project-dir lein run "Hello World!" cat ~/.lein/profiles.clj {:user {:plugins [[cider/cider-nrepl "0.14.0"]]}} clojure-mode is installed. I forked and…
Chip
  • 51
  • 1
  • 6
4
votes
0 answers

How can I properly reload my code from the REPL?

I have a src/example/foo.clj file: (ns example.foo) (defn my-fn [] (println "Hello, world!")) I can open it in Emacs and spin up a REPL using C-c M-j and play with it. I don't want to type long namespace names, so I alias the ones I need: user>…
Sam Estep
  • 449
  • 5
  • 20
3
votes
2 answers

Evaluate paragraph in cider

I'm new to Emacs (after 10+ years of Vim) and want to use it primarily for clojure. Coming from Lighttable, one thing I absolute liked was the way it evaluated just the right sections of code no matter where I am. This is basically: Evaluating a…
ClojureMostly
  • 225
  • 1
  • 5
3
votes
1 answer

Evaluating `org-babel-clojure` blocks returns all form evaluations

I'm trying to set up babel for use with Clojure according to http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-clojure.html#org85bc1ec and I can evaluate code but when I evaluate a block with multiple forms in it it outputs all of the form…
3
votes
1 answer

Defining advice for cider-interactive-eval for evil compatibility

Cider offers very useful debugger for clojure code. Once you enter the debugger, you can step through it with keys like (n)ext, (o)ut, etc., like so. Using evil, the problem is that if I enter this debugger in normal-state, those keypresses will…
sooheon
  • 481
  • 2
  • 8
2
votes
2 answers

Key binding to run Clojure code in running cider REPL and specified namespace

I have cider working just fine in Emacs with my Clojure code. I am following a tutorial that uses Cursive as the IDE; in the tutorial they were able to define a key binding to a line of code in a specific namespace. The command I want to run in the…
2
votes
1 answer

Halting Clojure debugger after pressing the Continue Command

I use Emacs with Cider to debug Clojure Code. After setting a breakpoint using the default debugging framework, there appears the list of debugging options one might execute shown in this Figure I experience recently a strange behaviour. If I press…
M.C.
  • 71
  • 5
2
votes
1 answer

command works with M-x but gives "Wrong type argument: commandp" when calling through key binding

I wrote this command and key binding to use with cider for Clojure development: (defun reload-and-eval-in-repl () "Set the ns of the repl to the one in the current buffer, then eval the region of the whole buffer in the repl and switch to it." …
2
votes
1 answer

Why do the latest versions of use-package and CIDER break each other?

Here is an example config to demonstrate the problem I am facing: (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/")) (package-initialize) (package-refresh-contents) (package-install 'use-package) (setq…
Sam Estep
  • 449
  • 5
  • 20
2
votes
0 answers

Show all library functions in autocomplete with Cider

When I have imported the reagent.core library as reagent and I type (reagent/ I want to see all possible functions from that library I can use, preferably with documentation. Unfortunately I get only suggestions of text I already typed in that…
1
2 3