Fork me on GitHub
#cider
<
2016-10-26
>
lvh12:10:58

@naomarik: didn't know about clojurescript-mode

nha12:10:30

I ahve been using cider for quite some time but always locally. Now I am coming to a Clojure project where te environment is dockerized, and I can’t seem to use cider-connect:

[nREPL] Establishing direct connection to 192.168.99.100:7889 ...
[nREPL] Direct connection failed
[nREPL] Establishing SSH tunneled connection ...
Quit [2 times]
What would be the first step to debug?

nha13:10:12

(Note: the people in this project were not using the cider repl. I also tried with this sample: https://github.com/tcsavage/nrepl-docker - same result.

naomarik13:10:07

@nha is your docker image exposing the 7889 port?

naomarik13:10:15

@lvh ya - should happen automatically on cljs files but on cljc if you want to eval anything as cljs you just switch to clojurescript mode and it works

lvh13:10:12

Yeah, we mostly have cljc :)

nha13:10:08

@naomarik it is (in the docker-compose file). And even in the sample github repo which exposes port 5000 (https://github.com/tcsavage/nrepl-docker) I am not able to connect. Works fine locally otherwise

nha13:10:23

we also have a bunch of machine in an integration environnment that people connect to - can’t access those so I am tempted to think something is wrong with my setup.

nha13:10:58

Actually scrap the last comment - I can connect fine to these machines. Not to the docker one though.

nha14:10:03

…so I am now tempted to think the problem is in the docker env.. I haven’t got a lot of exp. with that though