This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-20
Channels
- # announcements (5)
- # beginners (37)
- # calva (3)
- # cider (23)
- # clojure (98)
- # clojure-dev (16)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (5)
- # clojure-spec (7)
- # clojure-uk (52)
- # clojurescript (14)
- # cursive (15)
- # data-science (1)
- # datomic (20)
- # emacs (7)
- # flambo (2)
- # fulcro (10)
- # jackdaw (1)
- # jobs (3)
- # joker (2)
- # juxt (3)
- # keechma (3)
- # leiningen (8)
- # luminus (3)
- # music (1)
- # off-topic (83)
- # pathom (19)
- # re-frame (19)
- # reitit (4)
- # shadow-cljs (76)
- # spacemacs (95)
- # tools-deps (16)
For clj-on-windows, how would I start a socket repl? I'm trying powershell -command clj '-J"-Dclojure.server.repl="{:port 5555 :accept clojure.core.server/repl}""'
but not sure if I have the quotes wrong or if there is something else going on. The REPL starts up, but I can't get to the socket repl at all.
@shaun-mahood Did you try with comma instead of space in that?
Of course not - I never think of the Corfield comma 🙂
Alternatively, just use an alias in your deps.edn
(which is how I do it on Powershell).
(and it has to have commas in the deps.edn
version because of the round-tripping through the .cpcache
files and shell etc)
@shaun-mahood Did it work with the comma?
No luck yet - I might be putting the commas in the wrong place though
I just realized I have to put lein on that machine, though, so I might use that instead - saves me from figuring out how to get Cursive to connect to a socket repl
Cursive requires nREPL doesn't it? So you wouldn't want to start a Socket REPL anyway.
Yeah, I think there's a way around that (using https://github.com/mfikes/tubular), but nREPL is the way to go for this one I think.
clj -A:nrepl
🙂
:nrepl {:extra-deps {nrepl {:mvn/version "RELEASE"}}
:main-opts ["-m" "nrepl.cmdline"]}
Yeah that looks nice and easy 🙂
This is why I have so much stuff in my .clojure/deps.edn
file -- and I have it on every machine and under every shell (macOS, Windows Powershell, WSL, etc)
@seancorfield It looks like it was a firewall issue, not a Clojure issue - thanks for the help, using your aliases I at least found where the problem was. Now to figure out why Windows Server is ignoring me when I tell it to open a port...