This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-08
Channels
- # aws (21)
- # beginners (62)
- # boot (29)
- # chestnut (1)
- # cider (110)
- # cljs-dev (37)
- # clojure (93)
- # clojure-berlin (1)
- # clojure-dev (10)
- # clojure-greece (4)
- # clojure-italy (5)
- # clojure-new-zealand (1)
- # clojure-spec (6)
- # clojure-uk (46)
- # clojurebridge (1)
- # clojurescript (54)
- # cryogen (1)
- # cursive (22)
- # datomic (72)
- # emacs (2)
- # events (3)
- # flambo (1)
- # hoplon (88)
- # jobs (6)
- # juxt (51)
- # lein-figwheel (1)
- # leiningen (3)
- # lumo (12)
- # mount (4)
- # off-topic (3)
- # onyx (3)
- # pedestal (4)
- # portkey (27)
- # re-frame (13)
- # reagent (1)
- # ring (4)
- # rum (2)
- # uncomplicate (1)
- # unrepl (3)
Hi folks! What is the binding/command I need for dumping the nRepl activity again (all the commands sent and received) ?
I have auto complete in my repl but I don’t in clj files (clojure-mode), how do I find out why?
@nooga C-h m
should give you the list of all the active modes for a buffer
Hi all! Has anyone encountered the problem that cider just doesn’t open a cider-repl
buffer and also does not connect to the nrepl-server
even though that one is running? (All after a call to cider-jack-in
)
@dpsutton It ends with >Starting nREPL server via /Users/Elias/.local/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.12\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[refactor-nrepl\ \"2.4.0-SNAPSHOT\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.15.1-SNAPSHOT\"\] -- repl :headless :host ::...
>WARNING: or already refers to: #‘clojure.core/or in namespace: clojure-org.visualization.svg, being replaced by: #‘clojure-org.visualization.svg/or
I have been using cider for a while - it stopped working today after i tried out some code, mainly trying to get data from google/bing through slurp
- working through clojure for the brave and true
atm.
(defn google-search-url
[term]
(str "" term))
(defn bing-search-url
[term]
(str "" term))
(defn search
[term]
(doseq [url [google-search-url bing-search-url]]
(let [result (promise)]
(future (if-let [answer (slurp (url term))]
(deliver result answer)))
@result)))
(search "golf")
I somehow don’t think that the code could have broken cider - its just when it happened somehow
I once even threw out the whole emacs configuration with all packages and reinstalled everything
I would like to see at least an error message somewhere - but i’m not familiar enough with emacs yet to find any 😄
(shell-command "lein repl")
can you try that? is it possible that emacs can't see lein on your path?
Well it stuck after the shell command 😄 i guess lein repl was running in the background and held the process
(when-let ((repl-buff (cider-find-reusable-repl-buffer nil project-dir)))
(let ((nrepl-create-client-buffer-function #'cider-repl-create)
(nrepl-use-this-as-repl-buffer repl-buff))
(nrepl-start-server-process
project-dir cmd
(when cljs-too #'cider-create-sibling-cljs-repl))))
that's a part of the cider-jack-in
function. and if that when-let isn't satisfied, it would just error out
so my guess is that emacs isn't finding a repl buffer and there's no code for that case
to evaluate elisp you run C-M-x
. To debug it you instrument it with C-u C-M-x
(the prefix in emacs lingo)
and when you run cider jack in, it'll bring you to the emacs code with a little mark where evaluation is and you can hit n
for next, c
for continue, etc
Hmm i cannot really use any C-M commands, because on my mac, the meta key is somehow broken 😄 i use spacemacs with SPC-something-something
I don’t get to the code o.O >condition-case: Symbol’s value as variable is void: helm-bookmark-map
ok. now that you know where cider-jack-in
is defined, want to try debugging it again?
or if you want you can print debug it but putting (message "some message here")
and it will print them for you
I wonder what
(let ((nrepl-create-client-buffer-function #'cider-repl-create)
(nrepl-use-this-as-repl-buffer repl-buff))
are for. These variables don’t seem to be used@magnars @dpsutton @jumar I filed an issue because this has also affected me, please pipe in to add details if needed 🙂 https://github.com/clojure-emacs/cider/issues/2084