Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • Sep 23 21:45
    WorldsEndless commented #3029
  • Sep 23 21:43
    WorldsEndless commented #3029
  • Sep 23 17:17
    vemv transferred #3056
  • Sep 23 09:56
    mukeshbhakuni opened #3056
  • Sep 22 06:43
    vemv closed #3053
  • Sep 22 06:43
    vemv commented #3053
  • Sep 22 06:08
    bbatsov commented #3053
  • Sep 21 19:27
    vemv commented #3053
  • Sep 21 11:59
    bbatsov commented #3053
  • Sep 21 11:54
    bbatsov commented #3046
  • Sep 21 07:21
    plexus closed #3046
  • Sep 21 07:21
    plexus commented #3046
  • Sep 19 20:47
    vemv commented #2968
  • Sep 19 20:21
    stale[bot] closed #2968
  • Sep 19 20:21
    stale[bot] closed #3007
  • Sep 19 20:21
    stale[bot] closed #2936
  • Sep 19 20:21
    stale[bot] commented #2968
  • Sep 19 20:21
    stale[bot] commented #3007
  • Sep 19 20:21
    stale[bot] commented #2936
  • Sep 19 20:21
    stale[bot] labeled #2880
Neil Okamoto
No. You pretty-print to a popup, or insert a pretty-printed comment into the current buffer.
Alex Stokes
how would i do the latter?
Neil Okamoto
cider-pprint-eval-last-sexp (C-c C-p) : Evaluate the form preceding point and pretty-print the result in a popup buffer. If invoked with a prefix argument, insert the result into the current buffer as a comment.
Alex Stokes
Neil Okamoto
In other words, with the prefix argument would be C-u C-c C-p
no problem!
Alexander Yakushev
Hey, can anyone help? I'm trying cider-test machinery for the first time, and cider-test-run-loaded-tests furiously opens all of my test files in Emacs. Can I prevent that?
Aleksander Sumowski
Hi everyone,
when I'm evaluating a piece of code from my project the resulting var gets put in the namespace where its defined. Is there any way to have it defined in the current repl namespace?
Aleksander Sumowski
I was looking for cider-send-last-sexp-to-repl
Hi all. I recently upgraded cider after being a year or two stale in revision level (hey, it worked so well!). However the new emacs cider 0.16.0 revision has two problems for me. (1) Often the source code traversal is very slow when the nrepl is up. For example it can take seconds to start scrolling upward after jumping to end of file. (2) I thought perhaps things might be getter worse as my cider/repl session had been up for a while so was going to try to clear the whole cider buffer with C-c M-o, only the option to clear the buffer appears not to exist any more. Is there a way to do clear the whole cider buffer? I didn't find one after poking around for a bit.
Note that I'm talking about clojure source code traversal, not traversal of the nrepl buffer. I was only trying to clear that in case it was sucking computes as it has been known to do for large print representations and such.
testing testing, is this thing on?
Neil Okamoto
You may get more responses in the Clojurians Slack, specifically the #cider channel. I happen to be working on a feature to avoid long lines of output in the repl (which would eliminate the slowdown problem) but in all my testing I have never seen excessive output lines in the repl affect interactions in other buffers.
The hangs occur specifically in the repl buffer itself.
Also yes, there is a way to clear the entire repl buffer, but I’m blanking on the exact command and it’s a holiday so I’m not at my laptop.
Sean Murphy
Hi, I hope you are well. I have a Clojure 6 month contract just come available in London up to £650 per day - please get intouch urgently if you are open to such a contract - sean@fullstack.london
Pressing c-h in Company completions says no docs are available, while using cider-doc works. Any idea why?
James Elliott
Hmm. After the latest CIDER upgrade, trying to jack in fails with: Error loading refactor-nrepl.middleware: java.io.FileNotFoundException: Could not locate cider/nrepl/middleware/util/misc__init.class or cider/nrepl/middleware/util/misc.clj on classpath., compiling:(refactor_nrepl/middleware.clj:1:1) Exception in thread "main" java.lang.RuntimeException: Unable to resolve var: refactor-nrepl.middleware/wrap-refactor in this context, compiling:(/private/var/folders/fg/1tzg0xt88v5bp20059blypr00000gq/T/form-init7039836408815040552.clj:1:9942)
Rob Culliton
is there a way to programmatically trigger a "return" keystroke via emacs lisp when using the nrepl in cider? I am inserting some text via a command in my .emacs config, and would like to submit it for evaluation automatically
Rob Culliton
ah cider-repl-return
C-h m worked quite well here. Rock on cider :thumbsup:
Hi, M-x cider-jack-in returns "The lein executable isn’t on your ‘exec-path’". Why is that?
CIDER doesn’t resolve symbols in non-core namespace for me. I have sent the namespace to REPL. Anything else I should have done?
The problem was with Spacemacs’ latest update.
Hi im using spacemacs. Does anyone have problems with syncing project with the repl. nRepl is fine nRepl establishes a connection but "cljr cider [not connected]"?
Hello Everyone, I need bit urgent help from you all.
I want to read all function name from .clj file and make a list of it.
Sean Allred
An Elisp list?
André Peric Tavares
Is there an easy way of creating a command for making cider evaluate the bindings inside a let as global? Like, if there's (let [b1 c1] ,,,), I want to move the point to let and make it evaluate (def b1 c1), making them available in the current namespace - this will make interactive debugging easier. It's like https://github.com/vvvvalvalval/scope-capture, but more straightforward
Blake Miller

@Andre0991 that's a good idea... and thanks for pointing out scope-capture which I am going to try out for this purpose. IMHO the easiest thing to do is probably to use scope-capture (if it works) and then make some emacs automation around that. What spyscope does is provide tagged literals to make it very easy to mark a form (whereas scope-capture gives you a macro and you wrap the form). If you add a tagged literal that wraps the next form in that macro, and then make an emacs hotkey that does something like

(defun cider-scope-capture-at-point ()
      (insert "#scope/capture\n")

Then you can move your point to the start of a form and hit a hotkey bound to that fn.

Jussi Räsänen
Hi! If I install new dependencies to project.clj, how can I reload repl so it finds the new libraries?
Does anyone know a good way of using orchestra's defn-spec macro together with cider debugging tools? cider-debug-defun-at-point only works when I manually macroexpand it and extract the defn form.
James Elliott
Whoops, I finally figured out that the reason I was no longer getting good error reporting in CIDER was because it doesn’t work yet with the latest Clojure 1.10 builds, so I have rolled back to Clojure 1.9.0 until that can be fixed. But it seems like there has been a recent CIDER change too, it no longer asks me for confirmation before killing a session with C-c C-q, is that configurable somewhere?
Abelrahman essam shehab el-deen
hello everyone
James Elliott
Hello, this place seems to have gone very quiet. :)
Ben Sless
Hi all, I'm having issues with jump-to-definition for java functions. I looked over some closed issues regarding this issue and it should just work ootb, but even for internal java stuff like java.util.UUID/randomUUID it doesn't work. How do I go about figuring it out / debugging and solving it?
Tobias Heinlein
Hi everyone! I'm fairly new to clojure / clojurescript and am currently reading "Learning ClojureScript".
I tried to follow the book to get cider to work with a browser repl, but I can't get it to work. I also tried to use the leiningen figwheel and figwheel-main templates. That got me a step further, but if I use figwheel as the ClojureScript repl type it only get me a "STDIN:" prompt in the minibuffer. In there I can interact with the repl in the browser but for instance sending a sexp to the repl from a buffer in emacs (using cider-send-last-sexp-to-rpl) does not work.
If I try with the figwheel-main template the website gets opened in my browser but in the cider-repl buffer the last line is "Opening URL http://localhost:9500" and nothing happens after that. Also in my modeline in emacs it always says "cider [not connected]".
Can anybody show me the way to get a ClojureScript repl to work with cider and emacs??
bendlas Tobias Heinlein (Gitter): https://github.com/bhauman/figwheel-template might be helpful
Mark Dawson
Hi All, I'm new to cider, and I'm getting used to the debugger. One thing that would be very nice, is if I could pause the debugger at a point. Write some new code in the buffer, and evaluate that code in the current (debugger) context. The problem with this is that CIDER hijacks some keys (e.g. i, h, o, e etc) - so typing new forms/expressions isn't possible. Is there a way to pause this overlay somehow so that I can write and evaluate code in the current context?
how to just show headline until tags searched position when search using ctrl c / sparse tree?
I don't want to show headline level below tags searched.
Juraj Martinka
Just a helpful reminder that anybody in this chatroom is likely to get a much faster and better response on Clojurians slack (#cider channel)
Witoslaw Koczewski
Hi. I am using Spacemacs (develop branch). After jacking in, evaluation and completion works fine. But I am missing refactoring commands. I have activated clj-refactor in my .spacemacs. It seams there is a bug in Spacemacs develop. Any suggestions where to look for the problem?
Witoslaw Koczewski
I have discovered that clj-refactor is working. Just the integration in the spacemacs menu is broken.

Hi! I'm having a very strange issue with cider. I'm developing a docker application, and during development, I spawn a repl using leingen inside the container, map the port to the host, and connect from my emacs using cider-connect. When launching my containers normally, this works without issue. However, when I use an alternative deployment method called docker-swarm, I get a "Sync nREPL request timed out" error right after attempting a cider-connect.

On a terminal in the same machine emacs is running on, I can run LEIN_REPL_PORT=1234 lein repl :connect, and this connects to the repl inside the container just fine (assuming it's running on port 1234). This makes me thing cider may be at fault here. But I can't think of anything that may be different between a plain lein :connect and what cider does internally that would cause the second to time out.

Any ideas?

Felipe Gonçalves Marques

Hello! I'm using spacemacs and recently, I have being seen the following error:
"Error building classpath. Could not transfer artifact refactor-nrepl:refactor-nrepl:jar:2.5.0-20191224.082108-5 from/to clojars (https://repo.clojars.org/): Range Not Satisfiable (416)"

The command being runned to start the repl is:
/usr/local/bin/clojure -A:dev -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} refactor-nrepl {:mvn/version "2.5.0-SNAPSHOT"} cider/cider-nrepl {:mvn/version "0.23.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["refactor-nrepl.middleware/wrap-refactor", "cider.nrepl/cider-middleware"]'

Setting cider-inject-dependencies to nil solve it. But it removes the refactor capabilities.
When changing the version with universal argument, it works.

Does any one have any idea how to solve this?
Is there a way to specify the version of this packages for cider?


Hello everyone. I have a question about vector. How can I merge a vector of vectors to a vector of number ? here is the example of the vector of vectors [[1 2] [ 3 4]]
here is the example of the a vector of number [1 2 3 4] Thanks you all.
@Nirvana I am not an expert and there are probably better ways, the one I know is (into [] (flatten [[1 2][3 4]]))
William Minshew
getting this error trying to cider-jack-in from cider-scratch:
error in process sentinel: Could not start nREPL server: Execution error (FileNotFoundException) at java.io.FileInputStream/open0 (FileInputStream.java:-2).
project.clj (No such file or directory)
wasn't happening earlier today.. not sure how I messed it up :(
William Minshew
ah from the update i guess clojure-emacs/cider#2896