Fork me on GitHub
#cider
<
2020-02-15
>
bozhidar08:02:34

@holtzermann17 Maybe @finn.volkel can help you with this? He has been working on some debugger fixes recently. In a week or two I should have a bit more time for CIDER myself.

bozhidar08:02:03

Btw, CIDER 0.24 (“India”) is out! Check out the release notes here https://github.com/clojure-emacs/cider/releases/tag/v0.24.0

💯 8
cider 8
😄 8
FiVo09:02:51

@holtzermann17 I think it would be good if you post the function you are debugging even if the context is missing and describe the steps even more elaborate. When you debug, do you call continue, next or quit etc? Do you do the page reload while still in debug mode etc.. Otherwise it's difficult to know what might be the problem

tvirolai09:02:29

Hi. I’m setting up a new machine and seem to be bitten by this old issue: https://github.com/clojure-emacs/cider/issues/1945. When doing a cider-jack-in, I get this: [nREPL] Starting server via /Users/tuomo.virolainen/bin/lein update-in :dependencies conj \[nrepl\ \"0.6.0\"\] -- update-in :plugins conj \[cider/cider-nrepl\ \"0.24.0\"\] -- repl :headless :host localhost [nREPL] server started on 49378 [nREPL] Establishing direct connection to localhost:49378 ... error in process filter: nrepl--direct-connect: [nREPL] Direct connection to localhost:49378 failed error in process filter: [nREPL] Direct connection to localhost:49378 failed When trying to connect to that port with telnet, I get this:

❯ telnet 127.0.0.1 49378
Trying 127.0.0.1... 
Connected to localhost.
Escape character is '^]'.

❯ telnet localhost 49378
Trying ::1... 
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
So it seems exactly like the issue described in the ticket. But that should be fixed by now, right? And the original workaround, putting `:repl-options {:host "::"}` in the Leiningen profile doesn’t help either. But can connect to the nREPL server started by Cide using Vim (Fireplace)… Any ideas how to fix this?

tvirolai09:02:06

I’m on OS X Catalina, OpenJDK 11 and my /etc/hosts looks like this:

##
# 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 

dpsutton15:02:59

one thing to check, can you spin up `

python -m SimpleHTTPServer 8000
somewhere and then hit that from a web browser at localhost:8000? I'm wondering if you lack the localhost alias in your hosts file

tvirolai10:02:55

That works, so the issue doesn’t seem to be in the hosts file. But now it seems that my whole Emacs setup is somehow messed up, since I can’t fetch packages anymore.