This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-03-23
Channels
- # announcements (7)
- # babashka (40)
- # babashka-sci-dev (74)
- # beginners (74)
- # calva (31)
- # cider (11)
- # clj-kondo (22)
- # cljs-dev (1)
- # cljsrn (1)
- # clojure (70)
- # clojure-brasil (3)
- # clojure-dev (12)
- # clojure-europe (39)
- # clojure-nl (2)
- # clojure-norway (15)
- # clojure-uk (9)
- # clojurescript (69)
- # community-development (2)
- # conjure (1)
- # core-async (3)
- # cursive (1)
- # data-science (1)
- # datalevin (13)
- # datomic (17)
- # emacs (42)
- # events (1)
- # fulcro (16)
- # graphql (9)
- # helix (1)
- # holy-lambda (14)
- # honeysql (2)
- # hugsql (3)
- # hyperfiddle (5)
- # kaocha (10)
- # lsp (41)
- # luminus (5)
- # malli (7)
- # meander (3)
- # membrane (47)
- # off-topic (23)
- # podcasts (2)
- # polylith (34)
- # rdf (4)
- # re-frame (2)
- # releases (2)
- # remote-jobs (1)
- # ring (16)
- # shadow-cljs (111)
- # spacemacs (6)
- # test-check (2)
- # tools-deps (19)
Hi, i am trying to find some resource about running clj and cljs repl in case of monorepo. My workflow: 1) jack-in-clj 2) running shadow-cljs watch 3) connect-in-cljs Cljs repl opens but is is not used by cider when i want to eval something in any cljs file. I would like to have same repl functionality for CLJ and CLJS. Thanks for help
@zikajk I think you're hitting https://github.com/clojure-emacs/cider/issues/3097#issuecomment-988750187 which really should be fixed, the issue has been lingering for too long
Ahh, is there some workaround? I relly on hot reload right now but it is limited if you need to eval just some cljs sexp etc.
Perhaps there's a buffer for the cljs repl and you can enter things there (semi-) by hand?
@U45T93RA6 yeah, this is fine sometimes. But it gets complicated in large codebase. Thanks for the tip.
If you get to hack on sesman
/ CIDER for obtaining the following behavior:
> if the file is .cljs and there's exactly one cljs connection, use that one no matter what
I think that PR would be extremely welcome
Hey @zikajk don't know if it is this that you mean, but i have my workflow like this: I have a monorepo with backend and frontend ns, then 1. jack-in-cljs: it starts a shadow-cljs watch 2. cider-connect-sibling-clj It's gonna open two repl buffers, one for cljs and one for clj. Then if you have like a cljc file that both ns use it will work on both repl.
@UCE6QCEQP nice tip. I will try that soon. I am running shadow-cljs/watch from clj namespace now.
@UCE6QCEQP Hey, that works great both ways. I can do cider-connect-sibling-cljs, no problems so far 👍