Fork me on GitHub
#emacs
<
2020-12-14
>
bozhidar11:12:37

It's some of my earlier work, but it's just as relevant 10 years later 😄 (https://github.com/bbatsov/guru-mode)

👍 12
zach20:12:29

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.

Gleb Posobin01:12:40

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?

zach03:12:05

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

zach03:12:48

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.

zach03:12:23

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.

zach03:12:21

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

zach03:12:21

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

Gleb Posobin13:12:52

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?

Gleb Posobin13:12:55

Emphasis on shadow-cljs watch as opposed to lein watch.

zach19:12:09

ah, I shall try that!

zach19:12:40

@UQ4RJ22EA, that worked! It took a minute, but I have a connected doom session. Thank you!