Fork me on GitHub

@richiardiandrea No, that’s the form which converts the Clojure REPL to a ClojureScript REPL.

👍 4

It’s a function simply, because it prompts the user about the form - init forms for common REPLs are supplied by default.


I think cider/piggieback is the cause of cljs repls reporting their status as clj.


Or possibly the presence of both cemerick and cider versions together


Uhm, ok will explore more


@dpsutton Supposedly @thheller fixed this a while a go.


I observed it without shadow


I put the logs on that ticket


I’ll take a look when I can. No one had reported any issues with this for quite a while after the initial rework, so I’m puzzled how this has resurfaced.


I'm thinking about coming back to Emacs and CIDER after a few years with Atom/ProtoREPL. On the Mac, I have 26.1, fresh install, and I added the latest cider and clojure-mode packages, opened up a file in a deps.edn project and C-c M-j jacks in just fine via clj. Very nice!


On my Windows box, I'm using WSL and Ubuntu, and a fresh install of Emacs 24.5.1 with the same cider and clojure-mode. When I jack in there, it tries to start the clj REPL but never seems to connect. When I look in the nrepl buffer, I see it's defaulted to the IPv6 address of 0:0:0:0:0:0:0:0 and it says I'm connected but cider-mode doesn't enable and if I toggle it, it says it is not connected.


So... is IPv6 supported? Is there a way to force it to IPv4?


If I start the clj REPL in a terminal window, I see

[email protected]:~/clojure$ clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.18.0-SNAPSHOT"} }}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["cider.nrepl/cider-middleware"])'
nREPL server started on port 52802 on host 0:0:0:0:0:0:0:0 - nrepl://0:0:0:0:0:0:0:0:52802
So I don't get a prompt...


Hmm, OK, that's the same as on the Mac... Where C-c M-c does work to connect to a terminal-initiated nREPL server.


I'm trying to get cider working with shadow-cljs. I (setq cider-default-cljs-repl 'shadow) then tried to cider-jack-in-clojurescript but keep getting The clojure executable isn’t on your ‘exec-path’ I'm on windows so don't have access to the CLI tools, but I assume this shouldn't be needed anyway and I just am missing some piece of config?


(I can start shadow in a command line and then connect to nrepl, it's just the jack-in i can't get working)


@jjttjj I imagine that cider is trying to start a repl via clojure and then use the started repl to auto-activate shadow.


@jjttjj Try setting cider-preferred-build-tool to "shadow-cljs"


Alternatively, "Always ask" is an option


Hmmmm, this doesn't seem to be working either


If you weren't starting it up through CIDER how would you get it running?


shadow-cljs watch my-app


which starts a nrepl server which i then cider-connect to and from there I have user.clj file that requires the necessary shadow-cljs stuff and defines a fn allowing me to call (start-repl :my-app)


just wondering if i can cut out a few of those steps