cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
Nom Nom Mousse 2021-06-01T09:17:04.082700Z

Are we supposed to add cider-nrepl to the project.clj of the project we want to use CIDER for?

Nom Nom Mousse 2021-06-01T09:18:40.083700Z

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.

bozhidar 2021-06-01T09:40:11.084500Z

> 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.

bozhidar 2021-06-01T09:40:36.085Z

> 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.

🙏 1
bozhidar 2021-06-01T09:40:49.085300Z

I haven't used Luminus in ages, but this worked fine in the past.

Nom Nom Mousse 2021-06-01T09:44:13.085700Z

Clever. Would not have thought of this 🙂

Nom Nom Mousse 2021-06-01T09:57:47.086500Z

It is working! What an incredible feeling it is to change your running program :lambdalove:

🚀 1
Nom Nom Mousse 2021-06-01T10:07:54.087500Z

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?

bozhidar 2021-06-01T10:38:54.087700Z

That's how I develop nREPL from nREPL. 😄

😀 1
bozhidar 2021-06-01T10:39:33.088300Z

Did you evaluate this or restart Emacs after adding it to your config?

Nom Nom Mousse 2021-06-01T10:40:43.088800Z

I think I tried restarting too. But it might be that doom interferes with something.

Nom Nom Mousse 2021-06-01T10:59:43.089800Z

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.

Nom Nom Mousse 2021-06-01T11:42:29.090700Z

Would be cool with an ns-prev and ns-next like (`buffer-prev` and buffer-next) to quickly switch between namespaces.

2021-06-01T20:49:26.094200Z

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?

dpsutton 2021-06-01T20:55:16.094600Z

can you post the exact message it displays?

2021-06-01T21:09:45.094700Z

I will when I get back, but it's the message you get when you eval something and you have no connected repl.

2021-06-01T21:10:35.094800Z

As in, there is no error. It's the lack of a connection that I'm confused about.

2021-06-01T23:32:14.101400Z

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...

2021-06-01T23:46:48.104900Z

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.

2021-06-01T23:55:18.107300Z

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.

2021-06-01T23:55:49.107900Z

maybe i should just run that command directly in one of the repls to avoid that.

2021-06-01T23:56:05.108200Z

direclty rather then evaling from the file.