cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
jmckitrick 2020-11-11T01:09:51.429500Z

Has anyone ever seen this error while starting cider with clj tools?

practicalli-john 2020-11-11T08:49:34.430400Z

https://clojurians.slack.com/archives/C03S1KBA2/p1605040651307300

tvaughan 2020-11-11T14:12:27.432700Z

I was just struggling with this. I modified cider-clojure-cli-global-options to include an alias that also included a different version of nrepl. Getting rid of the duplication solved it for me

jmckitrick 2020-11-11T01:10:00.429600Z

dpsutton 2020-11-11T02:42:49.430300Z

Someone posted those errors in #clojure earlier today

jmckitrick 2020-11-11T13:07:04.431100Z

Yeah, I'm working with @kanwei to figure it out, and we're stuck.

Louis Kottmann 2020-11-11T14:02:18.432600Z

@timsgardner I used to think it was not working as well until yesterday where I wanted to get to the borrom of it, the gist is: - ensure you have [cider/cider-nrepl "0.25.4"] in your lein plugins (or equivalent) - put the #break in front of the sexp you want to break on. If you put it above, it does not work

jmckitrick 2020-11-11T18:15:22.433900Z

Question: I just started on a clj/cljs project where the devs use cursive. I'm a cider guy. I got the backend up and running with no issue. The front end is shadow-based, but since they use cursive, they don't need a cljs repl. They have a whole source file that starts up the shadow server. What does the deps.edn or shadow-cljs.edn need so I can jack in with CIDER?

dpsutton 2020-11-11T18:17:17.434300Z

which controls the deps? are they in deps.edn or shadow-cljs.edn?

dpsutton 2020-11-11T18:17:45.434500Z

> They have a whole source file that starts up the shadow server. what does this mean?

jmckitrick 2020-11-11T18:18:34.434900Z

Sorry, I'm excitedly running at the mouth. Let me try something...

jmckitrick 2020-11-11T18:37:52.435100Z

The deps are in deps.edn.

jmckitrick 2020-11-11T18:38:02.435400Z

shadow-cljs.edn is only for shadow config

jmckitrick 2020-11-11T18:38:49.436100Z

There's a class with an entrypoint which starts up shadow internally (not via CLI)

jmckitrick 2020-11-11T18:39:18.436700Z

It sets some params, does some sass work, etc... and starts an nrepl.

jmckitrick 2020-11-11T18:39:37.437Z

And everything runs locally, front and back end.

timsgardner 2020-11-11T18:55:12.437100Z

ah, thank you, I'll try that!

jmckitrick 2020-11-11T21:50:17.437700Z

I'm thinking there must be a way to start from that endpoint, and still have CIDER connect.

dpsutton 2020-11-11T21:52:00.438200Z

if you get cider-nrepl in there it should just work to cider-connect to the nrepl server that shadow starts up

jmckitrick 2020-11-11T22:25:31.438400Z

ok I'll try again...

jmckitrick 2020-11-11T22:26:02.439Z

Oh wait... cider-nrepl, that's what I need. My first time working with a non-trivial deps.edn project

jmckitrick 2020-11-11T22:56:00.441Z

Making progress.... what does ':missing-nrepl-middleware' mean once shadow connection is made?