This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-27
Channels
- # alda (21)
- # announcements (7)
- # beginners (70)
- # boot (95)
- # braid-chat (28)
- # bristol-clojurians (2)
- # cider (22)
- # clara (4)
- # cljsjs (13)
- # cljsrn (40)
- # clojure (93)
- # clojure-argentina (1)
- # clojure-art (1)
- # clojure-miami (3)
- # clojure-norway (1)
- # clojure-portugal (2)
- # clojure-russia (39)
- # clojure-sg (3)
- # clojurescript (25)
- # clojurian-chat-app (4)
- # community-development (5)
- # conf-proposals (20)
- # cursive (48)
- # datomic (39)
- # devcards (5)
- # dirac (4)
- # editors (2)
- # events (11)
- # funcool (65)
- # hoplon (95)
- # jobs (12)
- # ldnclj (4)
- # lein-figwheel (2)
- # leiningen (1)
- # om (311)
- # onyx (20)
- # philosophy (4)
- # proton (41)
- # re-frame (83)
- # reagent (49)
- # ring-swagger (3)
- # spacemacs (8)
- # yada (5)
@nicola: I have the same question does cider switch nrepls automatically for clj/cljs projects based on file extension?
@isaac: yes if you have a cljs repl active, it will use that for eval/completion/etc. in .cljs files
In the middleware - https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/util/cljs.clj#L60-L64
Specifically the track-state
middleware is what informs the client of which REPL (technically nREPL session) is CLJ/CLJS - https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/track_state.clj#L141-L142
@cichli: my workflow - start nrepl for clj, start nrepl for cljs and in it start figwheel and start cljs (Piggieback), and it does not work with cider machinery - i.e. only one nrepl active - evals are sent to clj or to cljs and do not depend on file type.
@cichli: my workflow: 1. boot launch clj repl 2. cider connected clj repl (in this case, I can only eval clj code) 3. start-cljs-repl at cider’s clj repl (in this case, I can only eval cljs code) my question: Is there any way make repl can eval both clj and cljs code according the file type?
potentially i think it possible to run two repl servers in one java process, but that's another problem
You can use cider-create-sibling-cljs-repl
(with cider-cljs-lein-repl
appropriately set) rather than manually creating two connections (although AFAIK what you’re trying should still work, provided you’re associating the connections with the right project, which I think CIDER does automatically now)
You don’t ever need to run two nREPL servers; nREPL supports multiple concurrent sessions