Questions tagged [cider]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
21 views

Clojure nrepl: 'cider-jack-in returns error: “Spawning child process: Invalid argument”

Running GNUEmacs 26.3 on Windows 10, trying to set up environment per instructions for 'Clojure for the Brave and True' from here: https://github.com/flyingmachine/emacs-for-clojure/ I was able to ...
1
vote
0answers
10 views

CIDER inspector unable to refresh a modified atom

With the CIDER inspector I'm able to view the contents of an atom. I can do C-u C-u C-c M-i and input the atom with an @ prefix and the value displays correctly. Now, if I keep the inspector window ...
1
vote
0answers
20 views

Conditional CIDER breakpoint not working in recursive functions

I'm using CIDER for Clojure programming. I've been playing around with the CIDER debugger lately. I wanted to use the conditional breakpoint facility with some simple recursive function, such as ...
0
votes
1answer
57 views

Spacemacs Clojure Cider Debugger Gives Error, “No reader function for tag dbg”

After connecting Cider to Spacemacs, when trying to set a debug breakpoint on a function using ,-d-b (cider-debug-defun-at-point), I see the following message in the *cider-error* buffer. 3. ...
1
vote
2answers
547 views

M-x cider-jack-in, nrepl won't start

I am completely new to Emacs so apologies if this is a stupid question. I am following the Emacs configuration as outlined in Clojure for the Brave and True. Unfortunately, when trying to start the ...
2
votes
1answer
380 views

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-...
2
votes
1answer
87 views

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 ...
-1
votes
1answer
74 views

Updating cider to 20180624 hangs while compiling

When upgrading cider, emacs hangs while compiling cider-repl-handle-shortcut: I am running emacs 25.3~1.gite0284ab-kk1+16 on Ubuntu 16.04.4 LTS. The compile log buffer after C-g shows: Compiling ...
1
vote
2answers
302 views

org-babel-execute:clojure handle :file result error

-- UPDATE -- Declare what my code is trying to do: I want to let org-babel insert an inline image link which is generated by Clojure code. Here the image is generated by Incanter's function save. ...
1
vote
2answers
306 views

Disable minor mode when in another minor mode

I'm running a distribution of spacemacs and am currently working in clojure's cider debugger, and an issue I've run into is that several of the cider--debug-mode keybindings are shadowed by evil-mode. ...
1
vote
1answer
407 views

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 []) ...
3
votes
1answer
146 views

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 ...
4
votes
7answers
2k views

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....
2
votes
1answer
688 views

command works with M-x but gives “Wrong type argument: commandp” when calling through key binding [closed]

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 ...
2
votes
1answer
339 views

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-...
2
votes
0answers
602 views

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 ...
1
vote
1answer
301 views

popup package not found when installing ac-cider package

When I try to install ac-cider via package-install or via init.el I get the message http://melpa-stable.milkbox.net/packages/popup-20160531.425.el: Not Found: This is the code in my init.el: (...
0
votes
2answers
149 views

How can I automatically confirm the default value to a function call?

Apologies if this is poorly described, my emacs vocabulary is pretty limited. I've set the following in my config: (define-key evil-normal-state-map (kbd "C-=") 'cider-find-var)) cider-find-var ...
3
votes
1answer
314 views

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 ...
2
votes
1answer
672 views

M-. and M-, in evil-mode

In normal mode I can't jump to definition with ternjs or cider modes. I have to go to insert then hit M-. Is that the evil way? Should I have M-. bound to another function that checks what mode you ...
5
votes
1answer
1k views

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 ...
5
votes
2answers
567 views

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 ...
0
votes
1answer
120 views

Is there an eval-defun alternative for Clojure mode?

When I define a function in Emacs Lisp mode, you can evaluate it with moving the pointer to the last parenthese of a function, and do C-xC-e. Aka calling eval-last-sexp. I thought this is somewhat a ...
2
votes
0answers
1k views

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 ...
2
votes
2answers
109 views

How do I perform a sequence of actions with a single keybinding?

i am using cider. I want to do the following: when I finish editing in a source buffer, I want to compile the source and execute it in the repl, all with a single key-binding. In cider-mode, ...
1
vote
3answers
531 views

How to set cider using boot middle ware?

In Emacs with cider and lein installed, I can M-x cider-jack-in to start clojure repl. I installed boot and would like to switch from lein to boot. How to set cider to use boot middle ware? (I don't ...
3
votes
2answers
283 views

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 ...
5
votes
3answers
956 views

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 ...