Fork me on GitHub

is there a cider option to keep the REPL ns synced with the current clojure buffer ns?


I have such a fn, but it got reeeeeeeally custom so it's not worth sharing but it should be pretty easy, and a good excuse to learn about Elisp hacking if you're still in that stage!


thanks, I do enjoy a bit of elisp hacking 🙂

🙌 1

not that i know of. do you know the shortcut to load the buffer and set the ns though? (`C-u C-c M-z`)


nice, thank you


that's built into my muscle memory and i use it the way you are asking


Wow, this is basically perfect! pressing the prefix is a little annoying (I use evil + evil-leader ,so for me its ; u followed by a gz. I guess I could advice cider-switch-to-repl-buffer or just write a wrapper function for it so I only ever need to hit gz to flip/flop


Ok, another one to fire off - is there a convenient way to enable pop up (ac-cider) doc help in the clojure mode buffers, not just in the cider repl? So that when I type, (map in a clojure buffer, I get the ac candidates with the popup.el help tooltip, as I do in the repl? (I know company supersedes ac-cider, but ac-cider still works perfect in the repl and company stated on github they will never support terminal based popup hover tips)


advice gets spooky. should be trivial to write a function that calls

(defun my-thing ()
  (cider-repl-set-ns (cider-current-ns)))


I have no idea how ac-cider works sorry


thanks again x2


I should have researched into my own init a bit more, I was just misisng a mode hook


(that I had on cider repl hook)

cider 1

(defun my-cider-ac-hooks ()
           (auto-complete-mode 1)

+        (add-hook 'clojure-mode-hook 'my-cider-ac-hooks)


Anyone knows what this error means?

[nREPL] Starting server via /usr/local/bin/lein update-in :dependencies conj \[nrepl\ \"0.5.3\"\] -- update-in :plugins conj \[com.billpiel/sayid\ \"0.0.17\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.19.0-SNAPSHOT\"\] -- with-profile +dev repl...
[nREPL] server started on 56326
[nREPL] Establishing direct connection to localhost:56326 ...
[nREPL] Direct connection to localhost:56326 established
error in process filter: nrepl-send-sync-request: Sync nREPL request timed out (op clone id 1)
error in process filter: Sync nREPL request timed out (op clone id 1)
This happens when doing cider-jack-in on a project


further tries give the error:

user-error: 'cider-jack-in' requires the nREPL op "classpath" (provided by cider-nrepl)


@pablore It means that probably something blew up while the server was starting. I guess the actual error is not visible in the message you’ve pasted here.


You can try running the command in the shell to see what happens when you run it.


You should also check out the instructions here


yep, it’s blowing up when doing lein repl too:

Exception in thread "main" Syntax error compiling at (/private/var/folders/q9/7v8dcy694bj2mc9cykfm8gn00000gn/T/form-init5200111103923137134.clj:1:11480).


I don’t know why is it compiling some obscure clj file in /private


That’s a temp storage for code evaluated in the REPL. Check your project’s configuration (and your profiles) it must be something wrong there. If lein repl doesn’t work properly, the problem is not CIDER-related.


Can cider-doc auto complete from the company or ac-cider completions list at all?