Fork me on GitHub
#cider
<
2018-06-03
>
bozhidar03:06:03

@seancorfield Can you file this as a ticket, so we won’t forget about it. I’m traveling this week and I have little time for debugging, but I assume something might be wrong with the regexp we use to extract the host & port we should connect to using when using cider-jack-in. We got some code which looks for a line like 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 and gets the data from there. Likely that’s the broken part.

bozhidar03:06:48

>> Hmmmm, this doesn’t seem to be working either

bozhidar03:06:59

@jjttjj Can you elaborate on this?

bozhidar03:06:25

Btw, clojure-tools don’t work on Windows? Maybe we should add some check about this in CIDER, so they are ignored.

seancorfield04:06:55

@bozhidar Thanks. To be honest, the output of the REPL via clj looks identical on both macOS and WSL on Windows so I have one more test to do: I have a native Windows 10 machine with WSL to try this on (the one it failed on is actually running on a Parallels VM). Once I've established whether it's the VM or Windows as a whole, I'll open a ticket.

seancorfield22:06:41

So it seems that cider-jack-in works just fine for clj projects on native Windows with WSL/Ubuntu and therefore this is a problem with the Parallels VM: WSL/Ubuntu in Windows 10 in macOS. I'll do some additional digging and see if I can narrow it down a bit.

borkdude10:06:20

How do I include clj-refactor with clj? I probably have to include it here:

clj -Sdeps '{:deps {cider/cider-nrepl {:mvn/version "0.17.0"} refactor-nrepl {:mvn/version "2.4.0-SNAPSHOT"}}}' -e '(require (quote cider-nrepl.main)) (cider-nrepl.main/init ["cider.nrepl/cider-middleware" ... here? ...])'

borkdude10:06:30

I may remove it since I don’t use its functionality that much anyway

jjttjj17:06:59

@bozhidar Not sure if you saw this part, but this was my original question

richiardiandrea18:06:45

Do you folk compile cider? With make build I am getting:

emacs --version
GNU Emacs 27.0.50
Copyright (C) 2018 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of GNU Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
cask build
Compiling /home/arichiardi/.emacs.d/packs/dev/clojure-pack/lib/cider/cider-apropos.el...

In toplevel form:
cider-apropos.el:28:1:Error: Cannot open load file: No such file or directory, clojure-mode
Compiling /home/arichiardi/.emacs.d/packs/dev/clojure-pack/lib/cider/cider-browse-ns.el...

...and many more...

dpsutton18:06:21

@richiardiandrea try with cask install right before it?

richiardiandrea18:06:55

right that works! @dpsutton not familiar with cask too much but shouldn't make build do that for you?

dpsutton18:06:19

i've run into issues with it with make test which should install as well. i don't know why

richiardiandrea18:06:20

I get also one warning:

cider-interaction.el:114:1:Warning: Alias for ‘cider-save-file-on-load’ should
    be declared before its referent

richiardiandrea18:06:00

oh ok, let's wait for an answer, I can contribute that...just don't know if it's something you usually do

seancorfield22:06:41

So it seems that cider-jack-in works just fine for clj projects on native Windows with WSL/Ubuntu and therefore this is a problem with the Parallels VM: WSL/Ubuntu in Windows 10 in macOS. I'll do some additional digging and see if I can narrow it down a bit.