This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-12-14
Channels
- # adventofcode (42)
- # babashka (37)
- # beginners (62)
- # cider (13)
- # clj-kondo (12)
- # cljdoc (1)
- # clojure (80)
- # clojure-australia (2)
- # clojure-dev (43)
- # clojure-europe (69)
- # clojure-italy (8)
- # clojure-nl (10)
- # clojure-switzerland (130)
- # clojure-uk (12)
- # clojurescript (23)
- # code-reviews (8)
- # cryogen (5)
- # cursive (6)
- # datomic (3)
- # duct (4)
- # emacs (12)
- # fulcro (60)
- # kaocha (7)
- # lambdaisland (4)
- # malli (4)
- # meander (1)
- # nrepl (31)
- # off-topic (2)
- # re-frame (16)
- # rewrite-clj (5)
- # shadow-cljs (11)
- # spacemacs (7)
- # xtdb (1)
It's some of my earlier work, but it's just as relevant 10 years later š (https://github.com/bbatsov/guru-mode)
Hi! I was wondering if anyone had advice/experience with working with doom-emacs and clojurescript (specifically a project created using https://github.com/day8/re-frame-template ? I cannot connect my emacs to the repl created by this template, but am uncertain if itās an issue with my doom setup, the template, or my expectations about either.
I am not using this template, but I am using Cider repl in Doom Emacs with a shadow-cljs and re-frame project. What's the problem you are seeing?
Ah, thank you for replying, @UQ4RJ22EA! The issue I am having is that after I start up the project with lein watch
and then go into doom and run cider jack-in cljs
, I get an error of server already running
I assume this is because emacs is trying to create and start a repl which was already made by running lein watch
, and so I try to do cider connect cljs
and choose the nrepl created which is port 8777.
This will open up a repl in doom set to the namespace cljs.user
. I can write functions in this repl, and I can send stuff to the browser (e.g. (js/alert āsomethingā)), but I canāt evaluate any functions in my buffer.
The hot reloading is working, if I adjust views i see that reflected in the browserā¦but if i wrote (+ 1 2 3 4)
in one of the files, then did ,ee
to evaluateā¦.nothing happens. If I do ,eE
to send a form to the repl I get the message file is not connected to any repl session
this also means I canāt look up a variable with cider docs or any other useful stuff iām used to with a straight clojure project
Cider-jack-in starts a new server for the repl, yes. I think I was also having problem with running shadow through lein so instead I am starting the shadow-cljs watch through cider-jack-in-cljs. Can you try that?
Emphasis on shadow-cljs watch as opposed to lein watch.
@UQ4RJ22EA, that worked! It took a minute, but I have a connected doom session. Thank you!