Fork me on GitHub
#cider
<
2018-06-02
>
bozhidar00:06:07

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

👍 4
bozhidar00:06:30

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

dpsutton00:06:43

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

dpsutton00:06:00

Or possibly the presence of both cemerick and cider versions together

richiardiandrea01:06:18

Uhm, ok will explore more

bozhidar01:06:41

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

dpsutton01:06:59

I observed it without shadow

dpsutton01:06:11

I put the logs on that ticket

bozhidar01:06:25

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.

seancorfield03:06:41

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!

seancorfield03:06:46

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.

seancorfield03:06:03

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

seancorfield03:06:57

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

sean@Windows10VM:~/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...

seancorfield03:06:15

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.

jjttjj15:06:49

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?

jjttjj15:06:50

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

dominicm16:06:08

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

dominicm16:06:50

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

dominicm16:06:12

Alternatively, "Always ask" is an option

jjttjj16:06:03

Hmmmm, this doesn't seem to be working either

dpsutton16:06:42

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

jjttjj16:06:06

shadow-cljs watch my-app

jjttjj16:06:50

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)

jjttjj16:06:04

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