Fork me on GitHub
#cider
<
2019-07-29
>
bozhidar06:07:17

@alexyakushev Did you manage to figure out the problem? I’m also on Mojave, but haven’t experienced this problem. I do recall there was some issue with eldoc lookup in one of the recent cider-nrepl/orchard snapshots (which we supposedly fixed).

alexyakushev07:07:05

@bozhidar It didn't hang again yet, but I don't really know how to figure it out. It's not easily reproducible, nor there's a way to understand what's going on once it freezes.

bozhidar07:07:19

Ah, my favourite kind of bugs. 😄

smw17:07:53

i'm getting this error when I try to cider-jack-in-cljs to a newly created figwheel-main template:

jr0cket05:07:07

My guess is that you have a space in a Clojure keyword between the : and the name, somewhere in the code of the project you are running the REPL from. Or just a rogue : character somewhere in the code

smw17:07:59

anyone know what I might be doing wrong?

cfleming22:07:44

When jack-in starts the nREPL process and connects to it, how does it handle waiting for the process to actually be started? Does it just try to connect until it doesn’t get Connection Refused?

cfleming23:07:33

I assume it doesn’t use the nREPL ack functionality since that requires an nREPL server, and I’m assuming (but prepared to be surprised) that no-one has ported that to elisp yet 🙂

robertkrahn23:07:52

@cfleming jack-in runs nrepl-start-server-process [1] which starts a nrepl server. The output is monitored via nrepl-server-filter [2] for the port message ("nREPL server started on port \\([0-9]+\\)"). Once the port is found nrepl-start-server-process calls a callback wich then connects the client. [1] https://github.com/clojure-emacs/cider/blob/master/nrepl-client.el#L1007 [2] https://github.com/clojure-emacs/cider/blob/master/nrepl-client.el#L1032

robertkrahn23:07:36

And "process filters" (scanning through stdout / stderr of a process by piping it in a buffer and calling an elisp function when the output changes) are a feature of emacs.

cfleming23:07:24

@robert.krahn_clojuria Ah, thanks - that makes sense.

cfleming23:07:45

@robertkrahn rather, whoops.

robertkrahn23:07:05

same guy, different accounts by accident... 😉