Are we supposed to add cider-nrepl
to the project.clj
of the project we want to use CIDER for?
Is there a way to use jack-in
to start my luminus webapp? I get jack-in
to work, but it does not connect to my running program.
> Are we supposed to add cider-nrepl to the project.clj of the project we want to use CIDER for?
Only if you're not going to use cider-jack-in
.
> Is there a way to use jack-in to start my luminus webapp? I get jack-in to work, but it does not connect to my running program. (edited) I guess you should start your Luminus app from CIDER's REPL after cider-jack-in.
I haven't used Luminus in ages, but this worked fine in the past.
Clever. Would not have thought of this 🙂
It is working! What an incredible feeling it is to change your running program :lambdalove:
I've set (setq cider-repl-display-in-current-window t)
in my .doom/config.el
. Still, the Cider REPL opens in a horizontal window on the bottom. Any hints on how to debug?
That's how I develop nREPL from nREPL. 😄
Did you evaluate this or restart Emacs after adding it to your config?
I think I tried restarting too. But it might be that doom interferes with something.
Updated my old doom emacs and it is still not working. Not that important though, but would be nice to have a vertical window as messages are sent to the REPL.
Would be cool with an ns-prev
and ns-next
like (`buffer-prev` and buffer-next
) to quickly switch between namespaces.
I run cider-jack-in-clj&cljs
and it prompts me for my clojurescript repl. I pick figwheel-main and the environment dev, this correctly starts a figwheel repl server. i go to eval an expression in my .cljs file and it says i'm not connected to a repl. i try connect-sibeling and it saysn "dev" is already running. which is true. So, how do i connect? why isn't it connected?
can you post the exact message it displays?
I will when I get back, but it's the message you get when you eval something and you have no connected repl.
As in, there is no error. It's the lack of a connection that I'm confused about.
So my goal is to two be able to eval clj and cljs. I think this project presents something of a learning opportunity here for me. (which is how i have to phrase it to stay sane). What i'm seeing is that it starts figwheel in the repl: https://github.com/oakes/odoyle-rum-todo/blob/master/dev.clj (figwheel/-main "--build" "dev") So my first thought is that ill at least need to start that in the background. So i wrap it in a future, comment out the deps file where it calls main-opts to call that ns, and add piggieback (so i can connect a sibling cljs connection). The nprel server start, then i call the main fn, which firs up a figwheen server, so everything is fine. But I can't join a cljs repl. Cider-connect prompts me for the repl type and build then tells me that build is already running (bc it is). cider connect sibling seems to start a clj nprepl then errors out because "dev" is already running. I feel like i'm off the happy path but i'm not sure how to get back on. I would love to have a structured tour of repl land around this problem but i'm guesing no one is up for that...
err ok. so if i cider-jack-in-clj&cljs. Then run the main funciton to run the server. it complains the address is already in use (which i'm sure will make sense to me in a moment) and then if i refresh the browser the assets (html and css) are properly fetched.
Well cider-jack-in-clj&clj starts two repls and their both marked as clj. when i run start the ring server the command seems to get sent to both which is why one is complaining the address is already in use.
maybe i should just run that command directly in one of the repls to avoid that.
direclty rather then evaling from the file.