Questions tagged [cider]
Cider is a mode for interacting with Clojure. As Slime does for Common Lisp, Cider does for Clojure.
34 questions
0
votes
0
answers
32
views
How can I always pretty-print outputs in CIDER REPL and evaluation results?
I'm using CIDER on Emacs for Clojure development.
Whenever I execute the command cider-eval-sexp-at-point, I see the output in the Emacs mini-buffer. I can also see it in the *Messages* buffer (since ...
0
votes
1
answer
23
views
Setting evil-set-initial-state/evil-emacs-state-modes for Cider repl to Emacs-mode
By default fresh buffers are placed into Normal mode by Emacs, with evil running. I'm trying to get the REPL for cider-jack-in to start in Emacs-mode on my system.
I looked at the buffer list, and its ...
0
votes
1
answer
125
views
Couldn't run single clojure test instead getting warning "cider no test at point"
I'm using emacs as clojure development environment. My emacs config is here
I'm trying to run single test in my clojure project.
I've test file called core-test in the folder test/getting-started/core-...
0
votes
1
answer
50
views
M-x cider-jack-in keeps starting server forever, but not really starting. How to integrate Emacs development to this Clojure project?
I am new to Clojure and I am using one of Eirc Normad's course to learn.
After following the instructions, I do a git clone of:
git clone https://github.com/lispcast/introduction-to-clojure.git
...
2
votes
2
answers
467
views
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 ...
2
votes
1
answer
331
views
How to eval sexp in clojure-mode with cider and write result in current buffer
For example I have the code:
(println "foo")
With cider-pprint-eval-last-sexp-to-comment I can eval the code and get
(println "foo") ;; nil
in clojure buffer and also it print ...
0
votes
1
answer
127
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
0
answers
23
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
0
answers
52
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
1
answer
208
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
2
answers
2k
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 ...
5
votes
1
answer
1k
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
1
answer
101
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
1
answer
86
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
2
answers
440
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
2
answers
759
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. ...
4
votes
1
answer
1k
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
1
answer
237
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
7
answers
3k
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
1
answer
3k
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
1
answer
499
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
0
answers
766
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
1
answer
467
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
2
answers
230
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
1
answer
421
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
1
answer
959
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
1
answer
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 ...
7
votes
2
answers
1k
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
1
answer
181
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 ...
4
votes
0
answers
2k
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
2
answers
132
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, ...
2
votes
3
answers
612
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
2
answers
367
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
3
answers
1k
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 ...