This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-06-03
Channels
- # beginners (112)
- # boot (13)
- # cider (17)
- # cljsjs (2)
- # cljsrn (8)
- # clojure (57)
- # clojure-spec (2)
- # clojure-uk (5)
- # clojurescript (51)
- # cursive (4)
- # data-science (15)
- # datomic (1)
- # duct (17)
- # garden (4)
- # lein-figwheel (49)
- # midje (1)
- # nyc (1)
- # off-topic (8)
- # pedestal (1)
- # portkey (20)
- # re-frame (4)
- # reagent (27)
- # ring (1)
- # shadow-cljs (24)
- # spacemacs (7)
- # specter (3)
- # sql (5)
- # yada (5)
@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.
Btw, clojure-tools
don’t work on Windows? Maybe we should add some check about this in CIDER, so they are ignored.
@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.
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.
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? ...])'
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...
@richiardiandrea try with cask install
right before it?
ah let me try
right that works! @dpsutton not familiar with cask
too much but shouldn't make build
do that for you?
i've run into issues with it with make test
which should install as well. i don't know why
I get also one warning:
cider-interaction.el:114:1:Warning: Alias for ‘cider-save-file-on-load’ should
be declared before its referent
oh ok, let's wait for an answer, I can contribute that...just don't know if it's something you usually do
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.