Fork me on GitHub
#cider
<
2019-11-24
>
macrobartfast01:11:40

that worked, in the cljs repl, cool...

macrobartfast01:11:19

hmm, I'm used to using cider-eval-defun-at-point within the buffer... is that sending it to the clj repl instead, or?

macrobartfast01:11:36

I'd like to be able to evaluate cljs in the buffer, if possible.

macrobartfast01:11:58

but I likely am not understanding what's possible, or how things work.

dpsutton02:11:42

It’s unfortunately not too smart. It will use the last used repl

macrobartfast02:11:21

well, sounds like a workaround! how do I 'use' a repl to get the cljs one to the front?

macrobartfast02:11:55

I tried evaluating (+ 1 1) in the cljs repl and then tried to eval something in the cljs buffer but it still threw the same error.

dpsutton03:11:16

It has to be the last focused repl. Whichever repl your cursor was last in will be the repl it uses

macrobartfast05:11:36

hmmm... still seems to throw an error... the repl is called cider-repl scratch/app:localhost:62232(cljs:figwheel) and maybe that's not the right kind of repl.

macrobartfast16:11:40

if I make a test.clj file and import into that, it works fine, even if the last repl I visited was the cljs one.

simonkatz18:11:45

@bozhidar I’ve created an issue for the thing I mentioned on Friday about evaluation only happening in a single REPL when in a .cljc file. See https://github.com/clojure-emacs/cider/issues/2756 I’ve hacked a proof-of-concept fix for things that go through cider-interactive-eval — see the ticket.

👍 4
Joe Littlejohn21:11:45

I think recently cider-find-var began opening a new buffer every time I navigate (CIDER 0.23.0). Is there a variable I can set to ensure that it always navigates in the current buffer?