Fork me on GitHub
#cider
<
2021-01-26
>
kirill.salykin07:01:28

@dpsutton thank you so much for the MR

kirill.salykin08:01:07

maybe something wrong with my setup, currently jack-in uses this command:

/usr/local/bin/clojure -A:dev:test -Sdeps '{:deps {nrepl/nrepl {:mvn/version "0.8.3"} cider/cider-nrepl {:mvn/version "0.25.8"}} :aliases {:cider/nrepl {:main-opts ["-m" "nrepl.cmdline" "--middleware" "[\"cider.nrepl/cider-middleware\"]"]}}}' -M:cider/nrepl
which seems correct, but it still runs the kaocha runner, not plain cider

kirill.salykin14:01:19

i see, thank you so much for work you do!

dpsutton14:01:46

my pleasure! sorry my first fix didn't actually, you know, fix it 🙂

kirill.salykin14:01:10

np, i didnt make any fix at all…

dpsutton14:01:09

early testing and feedback is an incredibly useful thing. so thanks for that!

kirill.salykin21:01:16

Your fix seems eorking for me (did quick test)

kirill.salykin21:01:24

Thank you so much!

🎉 3
andrea.crotti11:01:21

happened already a few times in the last days that the cider repl goes read-only

andrea.crotti11:01:41

not sure if it's something I do, but things like company and eldoc start failing since they can't write on the buffer

andrea.crotti12:01:03

it's weird though , read-only doesn't seem enabled, and if I enable and disable it again it still fails in the same way

andrea.crotti12:01:38

not too sure about what it is triggering it, but possibly evaluating something

dpsutton14:01:59

@andrea.crotti never seen this behavior before. make an issue and see if others chime in having seen it as well?

andrea.crotti16:01:04

mm yeah I would like to understand how to make it happen first

andrea.crotti11:01:13

mm it happened again, a whole bucnh of buffers become read only

andrea.crotti11:01:40

like `cider-repl--history-read: Text is read only

andrea.crotti11:01:54

and I can't even restart cider I have to restart Emacs

andrea.crotti15:01:30

ok apparently text read onl it's not related to the buffers, it's a property that somehow got set to some text

andrea.crotti15:01:48

I almost suspect that somhow I trigger that with some magic combination

andrea.crotti16:01:16

maybe it's not related with cider at all

valsen17:01:22

Hi! new emacs and cider user here.. Having some issues when being connected to two repls simultaneously (one for my clojure cli/deps files and the other for shadow-cljs, all in the same project). Evaluating expressions from a source buffer only works for the most recently active repl. So when switching to a buffer connected to the other repl, evaluation doesn’t work and I’m getting the “no cljs REPLs in current session…” message. If I then quickly switch over to the repl buffer I’m targeting, and then back to the source buffer, it works again. Is there some trick I can use to make cider automatically know which repl to use based on which file/buffer I’m in?

dpsutton17:01:45

unfortunately not at the moment. an open ticket to fix this and it'll be my next fix: https://github.com/clojure-emacs/cider/issues/2946#issuecomment-767507779

valsen17:01:31

I should have browsed through the issues there, sorry about that and thanks for the link:)

valsen17:01:24

Really looking forward to that fix!:) I haven’t yet found any editor or IDE that manages to handle this yet. At first I was using IntelliJ and Cursive, but moved away from it when I stopped using Leiningen. Currently trying out both emacs with cider and Atom with chlorine. Atom/chlorine is really slick and easier for emacs noobs like me, but chlorine can only handle one single repl connection…

dpsutton17:01:15

for sure. multiple connections is a tricky problem. and since emacs doesn't make different instances for different projects its a bit harder in CIDER. but we make the effort and this shouldn't be a terrible change

valsen17:01:55

Let me know if I can be of any help! Not sure what skills or tools are needed to contribute, but I’m a MSc student in computer science so have some general coding skills I guess:sweat_smile:

dpsutton18:01:10

well awesome. if you follow that linked thread and google up about how to step through emacs lisp you have all the tools you need

👍 3
dpsutton17:01:12

oops. linked a comment rather than the issue

blak3mill3r21:01:38

Does anybody know if it is possible to recover the redirected *out* behavior of an nREPL connection which was closed (due to a dead SSH tunnel)? The messages are still being redirected (they are not going to STDOUT of the repl server process), but they aren't going to a new CIDER repl buffer either when the connection is reestablished. Looking at https://github.com/clojure-emacs/cider-nrepl/blob/master/src/cider/nrepl/middleware/out.clj I thought that (after an eval op) the redirected output should arrive in the new CIDER repl buffer.