This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-28
Channels
- # announcements (6)
- # beginners (89)
- # boot (1)
- # calva (1)
- # cider (24)
- # cljsrn (19)
- # clojars (2)
- # clojure (102)
- # clojure-europe (2)
- # clojure-italy (9)
- # clojure-nl (1)
- # clojure-spec (6)
- # clojure-uk (56)
- # clojurescript (29)
- # code-reviews (14)
- # cursive (5)
- # data-science (1)
- # datomic (44)
- # duct (1)
- # emacs (10)
- # figwheel-main (5)
- # fulcro (8)
- # graphql (10)
- # hoplon (1)
- # leiningen (7)
- # overtone (17)
- # pathom (8)
- # re-frame (13)
- # slack-help (3)
- # spacemacs (22)
- # sql (2)
- # vim (3)
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!
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`)
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 ()
(interactive)
(cider-load-buffer)
(cider-repl-set-ns (cider-current-ns)))
(defun my-cider-ac-hooks ()
(auto-complete-mode 1)
(ac-flyspell-workaround)
(ac-cider-setup))
+ (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 should also check out the instructions here https://www.cider.mx/en/latest/troubleshooting/
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).