Fork me on GitHub
#cider
<
2016-04-06
>
malabarba00:04:22

@mtnygard do M-x toggle-debug-on-quit. Then reproduce the problem, and hit C-g around 10 seconds into the hang.

malabarba00:04:54

This will bring up a backtrace with the entire function stack, including function arguments. So you should be able to figure out what's going on (or at least what's being required).

mtnygard01:04:02

@malabarba: Thanks, Artur. That helped me find this: The delay is on call-process("ssh" nil t nil "-o" "ControlPath=%C" "host.does.not.exist”). That was ultimately invoked by require(tramp-compat) via require(tramp) in nrepl-client.el

mtnygard01:04:40

FWIW, this has been happening for a while, across multiple updates of cider.

mtnygard01:04:21

Looks like my ISP redirects bad DNS queries to a search page.

mtnygard01:04:57

Whose server doesn’t refuse SSH connections, but also doesn’t connect to them. Just blackholes traffic with no ICMP reply.

mtnygard01:04:33

This is apparently a known issue with Tramp. It was not clear to me at all that Cider would load Tramp.

mtnygard01:04:36

Fixed it by ditching my ISPs DNS servers.

malabarba01:04:15

Ah. Tramp has a history of causing delays like that.

malabarba01:04:30

Glad you solved it. 👍

malabarba02:04:33

@mtnygard By the way, it kinda bugs me that you said you couldn't get the debugger to work. So if you ever try again, I'd love to know the problem you had. :-)

bozhidar04:04:01

@mtnygard: tramp is being loaded because of some functionality in nrepl-client.el, what allows you to jack-in to a remote host

bozhidar04:04:24

maybe we should isolate this somehow or just load tramp on demand

richiardiandrea18:04:59

newbie question, in the cider repl is there a key binding to get a newline?

benedek18:04:11

C-q C-j should work i guess

benedek18:04:43

you might also find cider-scratch buffer helpful

benedek18:04:30

no worries

arrdem19:04:26

richiardiandrea: M-j will also work in the REPL buffer.

jrotenberg20:04:16

cider-scratch is my favorite place