This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
- # announcements (2)
- # beginners (32)
- # boot (10)
- # calva (81)
- # cider (39)
- # clojure (56)
- # clojure-europe (8)
- # clojure-italy (7)
- # clojure-new-zealand (1)
- # clojure-nl (8)
- # clojure-poland (1)
- # clojure-spec (12)
- # clojure-uk (38)
- # clojurescript (5)
- # community-development (1)
- # core-async (55)
- # cursive (3)
- # datomic (44)
- # dirac (15)
- # emacs (20)
- # events (1)
- # fulcro (57)
- # hyperfiddle (2)
- # jobs (9)
- # juxt (9)
- # kaocha (1)
- # lein-figwheel (1)
- # off-topic (93)
- # pathom (2)
- # pedestal (3)
- # planck (3)
- # reitit (15)
- # ring (10)
- # shadow-cljs (25)
- # spacemacs (7)
- # sql (19)
- # tools-deps (8)
Just a thought, is it possible to "inject the middleware" by hand, after connecting to the repl?
Without docker you can try just cranking up cider with the same command cider jack in would use. I think you'll see some output if you do this from the command line
cider-jack-in is adding cider/nrepl to the plugins. Not sure why, I don't have it in the project file, only nrepl/nrepl in dependancies. But... changing the startup command from
lein repl :headless to
lein update-in :plugins conj \[cider/cider-nrepl\ \"0.21.2-SNAPSHOT\"\] -- repl :headless lets it start ok. Now I get the clj-refactor warning but I can live with that. 😁
I think I have been getting confused between
cider-nrepl. The first is deprecated, but we still need the second, yes?
There's tools.nrepl which is deprecated and nrepl/nrepl 0.6.0 which replaces it. Cider/cider-nrepl are the nrepl middleware for cider which allows it to do all of it's fancy bits
hello guys! I have just switched from linux to macos and have noticed that cider debug is incredibly slow comparing to ubuntus…does someone has the same problem? is it possible to fix it somehow? Thank you!!
after a long time use, when I close the cider connection, still get the error
at this moment, the nrepl process will not be quit, If I kill the buffer with
[nREPL] Connection closed error in process sentinel: nrepl-send-sync-request: Wrong type argument: stringp, nil error in process sentinel: Wrong type argument: stringp, nil
C-x k, will get the error
If I start cider again, it will prompt for
error in process sentinel: nrepl-server-sentinel: Could not start nREPL server: error in process sentinel: Could not start nREPL server:
@doglooksgood Errors in the process sentinel are not very descriptive. Without a more specific stack trace I have no idea what went wrong for you.
you can see if there are any messages in
*Messages* or can try to start from the command line using the same command cider uses and see if there are any obvious errors
It’s not removed, although at some point we’ll have to actually fix the underlying problem. 🙂
I've previously gotten Emacs + Cider + regular Clojure (not cljs) all up and running for my 1st ever Clojure project. I went with Emacs since I had some experience with it 25 years ago. Anyhow, I got the jist of REPL development.
Now I'm trying Clojurescript, to implement the client-side of my little learning project. FWIW I'm trying the "Learn Reagent Free" course at https://www.jacekschae.com (free plug). WELL...
I'm having trouble getting the REPL going in this setup. The online course supplies the basic config files, so most of what I have was provided.
npm run dev command, it spins up shadow-cljs and starts up nREPL on port 3333.
cider-connect and give localhost / 3333, and emacs/Cider connects to the REPL. GREAT. The problem (or my confusion) starts here:
doing any sort of "eval" of any forms, buffers, or anything in Emacs seems to just... do... nothing.
I can enter expresions in the REPL buffer
(+ 3 4) yields 7, so the REPL is there. But it doesn't seem "connected" to any of my .cljs files or anything.
Another point: when I was just doing Clojure, I used
cider-jack-in to start the REPL. With this shadow-cljs it seemed I had to use
cider-connect; perhaps this line of thinking is wrong & is the problem?
When I try to do
cider-jack-in, Emacs gives the error The npx shadow-cljs executable isn't on your 'exec-path'
I think the approach with
cider-connect is the simplest one. You just need to select
cider-connect-cljs, and upgrade the new REPL to a shadow-cljs REPL. I started playing with this tutorial myself and that’s what I did.
FWIW this is how I do it: https://manuel-uberti.github.io/programming/2018/11/14/deps-shadow-cljs/
The hint (and my mistake) was the "upgrade it to a shadow-cljs REPL". After
cider-connect-cljs, I was skipping the important step of specifying "shadow" as the type. Then after that it wanted to know which shadow "build" to use, then it informed me that the browser wasn't up and running (a browser Reload cured that), then after that it all seemed to connect up. Thank you very much. My journey unto Cljs SPAs begins at last!