This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-02-23
Channels
- # announcements (2)
- # atom-editor (3)
- # babashka (49)
- # beginners (100)
- # biff (9)
- # calva (78)
- # clj-kondo (18)
- # clojure (143)
- # clojure-europe (13)
- # clojure-germany (1)
- # clojure-nl (2)
- # clojure-spec (5)
- # clojure-sweden (2)
- # clojure-uk (4)
- # clojurescript (58)
- # conjure (1)
- # cursive (4)
- # datascript (11)
- # datomic (63)
- # docker (7)
- # emacs (18)
- # events (1)
- # fulcro (18)
- # graalvm (5)
- # helix (4)
- # improve-getting-started (13)
- # jobs (4)
- # jobs-discuss (3)
- # lsp (15)
- # malli (90)
- # membrane (14)
- # off-topic (12)
- # other-languages (5)
- # pedestal (7)
- # polylith (53)
- # re-frame (15)
- # reitit (23)
- # releases (4)
- # remote-jobs (9)
- # ring (11)
- # shadow-cljs (90)
- # specter (2)
- # testing (3)
- # tools-build (63)
- # vim (2)
- # xtdb (8)
I’m running a clojure container with lein run in docker compose, and I have jvm-opts like so :jvm-opts ["-Dclojure.server.repl={:port,5555,:accept,clojure.core.server/repl}"]
in project.clj. I’m trying to connec to the socket repl in atom using chlorine. But when I specify localhost and port 5555 I get the following:
REPL not connected
Connection refused. Ensure that you have a Socket REPL started on this host/port
How do I fix this error?Check out this answer: https://stackoverflow.com/questions/36813690/connection-refused-on-docker-container It might have to do more with Docker than Clojure, so make sure you try the things described there first. 🙂
It could indeed be that the "host" need to be set to "0.0.0.0" so
lein repl :start :host 0.0.0.0 :port 12345
Maybe :
:jvm-opts ["-Dclojure.server.repl={:port,5555,:address "0.0.0.0" ,:accept,clojure.core.server/repl}"]
getting a similar error when trying to connect with clover on vscode
REPL not connected: Unknown error while connecting to the REPL: -61
doesn’t seem to work on nvim either