Questions tagged [cider]

CIDER is an Emacs package for interactive Clojure development.

From its GitHub README.md:

CIDER (formerly nrepl.el) is the Clojure Interactive Development Environment that Rocks for Emacs, built on top of nREPL, the Clojure networked REPL server.

References

195 questions
25
votes
1 answer

how to write multi-line functions in cider repl?

I'm using Clojure in Emacs with a Cider REPL. Is it possible to have multi-line functions in a cider REPL? How can I do this?
chris
  • 7,222
  • 5
  • 31
  • 37
21
votes
2 answers

How to terminate the process in cider-repl?

When running into a deadlock because of an infinite loop, how can I exit from the cider-repl? When it happens, I have to kill the emacs, or even reboot my computer to kill the cider-repl. Is there a better way of solving this?
cranehuang
  • 465
  • 1
  • 5
  • 11
20
votes
1 answer

Installation of cider-nrepl

I've installed CIDER 0.7.0 and now when I start it inside of Emacs (via M-x cider-jack-in RET), I get the following warning: WARNING: CIDER's version (0.7.0) does not match cider-nrepl's version (not installed) I've downloaded cider-nrepl and…
Mark Karpov
  • 7,499
  • 2
  • 27
  • 62
13
votes
1 answer

Why is cider finding the wrong version of cider-nrepl and how can I fix it?

I have installed cider via el-get, just today. When I start up cider in emacs, the following banner is printed: ; CIDER 0.8.0-snapshot (Java 1.7.0_65, Clojure 1.6.0, nREPL 0.2.6) WARNING: The following required nREPL ops are not supported: eldoc…
user268344
  • 839
  • 1
  • 8
  • 10
12
votes
1 answer

How to jump to clojure.lang java source?

When using Cider, doing "M-." above symbol "clojure.lang.ISeq" gives error "No source available for clojure.lang.ISeq". I see that the source for this file is in "clojure-1.5.1-sources.jar". How can I make Cider see this source?
newbie3000
  • 121
  • 3
11
votes
5 answers

How to clear the REPL in cider-mode?

I am not meaning cleaning up the text output of REPL; I mean cleaning up all evaluated results in REPL. During developing, repeatedly C-c C-q and C-c M-j is low efficiency. UPDATE There may be some bad debug behaviour of mine. I am not sure how…
Daniel Wu
  • 371
  • 3
  • 9
11
votes
1 answer

Installing an older version of an emacs package

I recently upgraded Emacs Cider through MELPA and it seems to have a bug on my machine. I don't need the bleeding edge builds and am happy to go back to an older build until they fix the issue. However I'm not sure how to install an older version of…
Daniel Compton
  • 13,878
  • 4
  • 40
  • 60
10
votes
1 answer

How do I get emacs cider (clojure mode) to use my test environment variables when running tests?

I've set up separate database-url for development and test environments, and this works nicely when running my webapp in the REPL and from the lein test on the command line. Here's my profiles.clj: {:profiles/dev {:env {:database-url "wiki"}} …
Eric Clack
  • 1,886
  • 1
  • 15
  • 28
10
votes
1 answer

Clojure's Emacs CIDER repl - environment variables from .profile are missing

I don't know if this is a general Emacs issue or clojure/cider specific. Anyway: How do I pass through environment variables which work in the shell and are configured currently in my ~/.profile. Now if I lein repl in my project, this works just…
auramo
  • 13,167
  • 13
  • 66
  • 88
8
votes
1 answer

How can I attach CIDER's debugger to a Luminus web application?

I have a Luminus project with the server running on localhost:7000. I use cider-connect to attach myself to this repl, but I'm met with the following wall: ; CIDER 0.10.0snapshot (package: 20150820.852) \ (Java 1.7.0_51, Clojure 1.7.0, nREPL…
Sean Allred
  • 3,558
  • 3
  • 32
  • 71
8
votes
4 answers

Why can't I print from background threads in Clojure Cider REPL in emacs?

If I try to evaluate the following code in my emacs cider-repl, nil is returned, as expected, but none of the printing takes place in the repl buffer or console. How can I make this print out as intended? (dotimes [i 5] …
kurofune
  • 1,055
  • 12
  • 26
7
votes
3 answers

Clojure - start a REPL without a project.clj

I started using Clojure with leiningen (and now boot). Now I sometimes want to get quickly to a Clojure{Script} CIDER REPL in Emacs to execute just a few instructions. I don't want to create a project.clj file for that, since I just want a throwaway…
nha
  • 17,623
  • 13
  • 87
  • 133
6
votes
4 answers

Unable to install cider to emacs - package not found

Fresh install of Ubuntu 20.04 Added openjdk-11 and lein 2.9.3 $ sudo apt-add-repository ppa:kelleyk/emacs Installed GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian Tried the instructions on the…
Gishu
  • 134,492
  • 47
  • 225
  • 308
6
votes
2 answers

Can't get Cider working

Last month someone helped me get Cider working on a Clojure project. I loved the functionality, particularly M-., cider-jump-to-var. But since then I haven't been able to replicate the correct behavior, either in the original project or in a new…
Sean
  • 29,130
  • 4
  • 80
  • 105
6
votes
4 answers

Emacs + Cider (Clojure) + Auto-Complete: How to get the docstring?

I am trying to properly configure emacs to write my Clojure code. I based my Emacs configurations on this good blog post. However, I did change a few settings like the theme he is using etc. I have been checking to get Auto-Complete (Eldoc? I am not…
Neoasimov
  • 1,111
  • 2
  • 10
  • 17
1
2 3
12 13