Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Direct connection to nREPL fails with totally clean install #2189

Closed
ChelseyM opened this issue Jan 31, 2018 · 2 comments
Closed

Direct connection to nREPL fails with totally clean install #2189

ChelseyM opened this issue Jan 31, 2018 · 2 comments

Comments

@ChelseyM
Copy link

Expected behavior

cider-jack-in starts nREPL and connects to it

Actual behavior

nREPL starts, but Cider can't connect to it.

Making nrepl-use-this-as-repl-buffer local to *nrepl-server test* while let-bound!
Starting nREPL server via /usr/local/bin/lein update-in :dependencies conj \[org.clojure/tools.nrepl\ \"0.2.13\"\ \:exclusions\ \[org.clojure/clojure\]\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.16.0\"\] -- repl :headless :host ::...
You can run the command ‘cider-jack-in’ with C-c M-j
nREPL server started on 49527
[nREPL] Establishing direct connection to localhost:49527 ...
error in process filter: nrepl--direct-connect: [nREPL] Direct connection to localhost:49527 failed
error in process filter: [nREPL] Direct connection to localhost:49527 failed

Steps to reproduce the problem

  1. Fresh emacs install
  2. no .lein/profiles.clj
  3. user Cider stable 0.16.0
  4. lein new test
  5. open core.clj
  6. cider-jack-in

Environment & Version information

CIDER version information

CIDER 0.16.0 (Riga)

Lein/Boot version

Leiningen 2.8.1 on Java 1.8.0_131 Java HotSpot(TM) 64-Bit Server VM

Emacs version

GNU Emacs 25.3.1 (x86_64-apple-darwin17.4.0, NS appkit-1561.20 Version 10.13.3 (Build 17D47)) of 2018-01-31

Operating system

OS X 10.13.3 (17D47) "High Sierra"

@bbatsov
Copy link
Member

bbatsov commented Feb 1, 2018

Can you tell what localhost is bound to for you?

This reminded me of #1945

@ChelseyM
Copy link
Author

ChelseyM commented Feb 1, 2018

This was a transfer to a new laptop, somehow the /etc/hosts file was completely blank. Restoring it to the OSx default fixed the issue.

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1             localhost

Thank you :)

@ChelseyM ChelseyM closed this as completed Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants