This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-15
Channels
- # announcements (2)
- # babashka (137)
- # beginners (96)
- # calva (3)
- # cider (11)
- # clj-kondo (8)
- # cljs-dev (161)
- # cljsrn (21)
- # clojure (78)
- # clojure-europe (47)
- # clojure-france (1)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-spec (24)
- # clojure-uk (9)
- # clojuredesign-podcast (4)
- # clojurescript (39)
- # conjure (2)
- # core-async (27)
- # cursive (36)
- # datomic (54)
- # emacs (6)
- # figwheel (9)
- # figwheel-main (46)
- # fulcro (25)
- # graalvm (8)
- # helix (30)
- # hoplon (6)
- # hugsql (3)
- # jobs (5)
- # leiningen (7)
- # luminus (12)
- # nrepl (20)
- # off-topic (20)
- # pedestal (16)
- # re-frame (14)
- # reagent (3)
- # reitit (3)
- # remote-jobs (5)
- # rum (25)
- # shadow-cljs (60)
- # spacemacs (10)
- # vim (2)
- # xtdb (36)
goodday
how one starts both clj and cljs?
when I use cider-jack-in-clj&cljs
- i am asked which command should be used?
https://www.dropbox.com/s/k2whs2w7bwsyoq1/Screenshot%202020-05-15%2011.23.45.png?dl=0
(not clear is it for clj or for cljs?)
If I select clojure-cli
- failure with piggieback not found
If i select shadow-cljs
- i have two cljs buffers (seems like, because in the supposedly clj REPL I see mention of ;; ClojureScript REPL type: shadow
)
please advice?
Thanks
If this is a shadow-cljs project, you should probably pick shadow-cljs.
Regardless of what the buffers say, are you able to evaluate expressions on .clj
files?
As an ugly short term fix: if you really have two separate CLJS REPL connections, you may pick one of those and type/send `:cljs/quit - it'll be "demoted" to a CLJ REPL.
thanks, i ll give it a shot
I assume you are running emacs/spacemcs. You can instigate multiple instances of CIDER and each one wil have a separate socket. You will have to be conscientious as to which you are mapped to. It is not obviously easy
> Regardless of what the buffers say, are you able to evaluate expressions on `.clj` files? Nope, it is indeed shadow-cljs repl clj files cannot be valuted because deps are not loaded
Sure, but can you evaluate (+ 1 3)
within a clj file? If there's a CLJ available anywhere, it'll be possible. If both are CLJS, it'll complain
even if i can - the fact that it cant load any clj dependency makes it useless not a biggie, I still can start two repls separatly :)
probably the cider issue… will file the ticket
thanks for your help and advices