Fork me on GitHub
#cider
<
2019-06-09
>
naomarik04:06:26

I used to be able to connect a cljs and a clj repl and have them work flawlessly, now I get an error like this user-error: No clj REPLs in current session "Sites/booma:localhost:5056" it will work as soon as I bring the clj repl buffer into focus, but then the cljs repl will give me the same error. sesman info gives me this:

1 Sites/booma:localhost:5056 [*cider-repl %s(cljs)*] linked-to proj(~/Sites/booma/)
2 Sites/booma:localhost:5056#2 [*cider-repl %s(clj)*] linked-to proj(~/Sites/booma/)

naomarik04:06:30

so both repls work, but i have to manually open the repl buffer that corresponds to cljs or clj depending on what i’m trying to evaluate

naomarik04:06:50

this is my cider version CIDER 0.22.0snapshot (package: 20190607.2013), nREPL 0.6.0

bozhidar06:06:46

@naomarik When did you start experiencing your problems? There haven’t really been any related updates in CIDER for a while now.

bozhidar06:06:12

When exactly do you get the errors?

naomarik07:06:57

@bozhidar i usually backup my emacs.d directory before updating everything, so it looks like version 0.17.0-snapshot of cider is what i was using before this latest version. The error displays when I use the function cider-switch-to-repl-buffer If the last repl buffer was a clj repl, and I try to use cider-switch-to-repl-buffer from a cljs file, I get this error and evaling anything does not work. As soon as I focus the cljs repl buffer, everything is good for cljs, then doing clj stuff breaks until I focus the clj buffer. I have the two repls running at the same time for backend/frontend shown from the sesman info output.

naomarik07:06:54

If you’re connected to a cljs and clj repl at same time in the same project, you’re able to evaluate both of them without having to focus the repl buffer of the type you want?

bozhidar08:06:36

Ah, so you’ve updated from a pretty old version. I get it.

bozhidar08:06:25

Well, your session data looks correct assuming you’re trying to evaluate code that is in this booma folder.

naomarik11:06:02

didn’t see that, but https://docs.cider.mx/cider/usage/managing_connections.html#_current_repl doesn’t seem to be working for me anymore, does my sesman info look correct? Maybe it’s my setup, I’ll try a new skeleton project later on and see if I get same behavior…

naomarik11:06:09

for context i’m launching a boot repl with my boot dev command and using cider-connect on it. Then for the cljs one I’m using (figwheel-sidecar.repl-api/cljs-repl "dash") in one repl to connect to cljs.

lvh22:06:17

I'm starting to experiment with clj/deps.edn and I'm hitting a problem with CIDER where C-c C-k only works in the buffer where I jack in, it doesn't work when I open sibling files to that file (in the same directory) -- for some reason the repl doesn't attach there. Any idea how I debug that?

lvh22:06:42

previously I noticed that behavior with a test directory, but I assumed that was because CIDER wasn't applying the test alias by default, so the file wasn't in the classpath

lvh22:06:53

this file definitely is

lvh22:06:34

(I know because I can (require 'my.ns) in the repl)

lvh22:06:00

when I manually run cider-connect-sibling-clj, the buffer works as expected