This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-07
Channels
- # aleph (19)
- # aws (1)
- # beginners (75)
- # boot (28)
- # cider (1)
- # cljs-dev (12)
- # cljsrn (20)
- # clojure (350)
- # clojure-argentina (1)
- # clojure-chicago (2)
- # clojure-dev (2)
- # clojure-russia (5)
- # clojure-spec (2)
- # clojure-uk (14)
- # clojure-ukraine (3)
- # clojurescript (68)
- # component (87)
- # core-async (25)
- # core-logic (13)
- # cursive (4)
- # data-science (72)
- # datascript (59)
- # datomic (15)
- # defnpodcast (7)
- # emacs (33)
- # hoplon (5)
- # immutant (73)
- # jobs (21)
- # klipse (6)
- # lumo (14)
- # off-topic (26)
- # om (23)
- # onyx (6)
- # parinfer (37)
- # protorepl (4)
- # re-frame (13)
- # ring (2)
- # rum (3)
- # spacemacs (2)
- # specter (22)
- # sql (47)
- # uncomplicate (10)
- # unrepl (79)
- # untangled (66)
- # vim (47)
- # yada (17)
is there a nice way for emacs to manage two cider repls (connected to different machines/projects)
i can jack in to two different projects without much issue. i'd imagine cider-connect can handle it pretty well
My current solution is to (1) have multiple repls running (outside emacs), (2) cider connect to one of them at a time [the other ones stay alive, as they're standalone repls]
you can have several project jacked in in your emacs. there is a. connection browser and there is a current connection
so as far as I remember you have to set your current connection to the right repl when you move between projects...
if you use C-u C-x C-Z
on a namespace that also selects the right repl connection for you
above key combo is to jump to the right repl for the namespace and also set the ns in the repl
Does anyone know how to do a search replace for a new line (e.g replace all commas with a newline) in emacs without using quoted-insert` (C-q C-j)
coming from vimland it seems like this process should be much easier and I'm missing something like s/,/,\r
the connection browser needs work. i think it just shows the session ids which isn't really helpful ha
ta @dpsutton but is there some smartness in place to figure out to which repl to send a form to for evaluating or is it always the current repl connection?
somethings call out to just (cider-current-connection)
and somethings call out to cider-map-conncetions
i'm not sure how smart (cider-current-connection)
is as its tough to know what its value will be in any given buffer
i have a long term goal to make the connection a required parameter at the very beginning of the interaction
(defun cider--guess-cljs-connection ()
"Hacky way to find a ClojureScript REPL.
DO NOT USE THIS FUNCTION.
It was written only to be used in `cider-map-connections', as a workaround
to a still-undetermined bug in the state-stracker backend."
C-o
works, it seems weird that I can't find a text visible representation of newline to use when using replace-string
or replacing-regexp
is there a way in cider to automatically refer-all from clojure.pprint/clojure.repl no matter what ns the repl is in?
(I guess eldoc mode and cider-repl-use-pretty-printing helps but it would still be nice to auto refer in those namespaces if possible)
the worry about auto referring to those vars would be if you accidentally used the functions in your namespace it would only work under CIDER (including deploying to production)
good point, for some reason i was under the impression that lein repl did that or another editor but I see that's not the case so I can see why it's best to avoid
actually I used nightcode at a clojurebridge recently, which has that behavior out of the box and I kind of liked it, but I see that it's kind of unique to nightcode
I'm trying to use cljr-remove-let
but I'm getting the error "refactor-nrepl is unable to build an AST for game.tile-sets. tools.analyzer encountered the following problem: No namespace: user found"
Anyone knows what's going on? I don't see what the user namespace has to do with anything, and it's exists too. cider-refresh
works.