cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
2021-01-26T07:15:35.031700Z

@bozhidar I turned on debug-on-error and here's the result for evaluating (+ 1 1) in just restarted REPL: https://gist.github.com/sktoiva/6811288773ebf6c15055b6f334f1ab08 That's inside a project, and I've yet to test will this manifest in a simpler setup.

kirill.salykin 2021-01-26T07:46:28.032200Z

@dpsutton thank you so much for the MR

blak3mill3r 2021-01-26T07:54:35.032400Z

have you tried disabling eval-sexp-fu-flash ?

kirill.salykin 2021-01-26T08:02:07.033700Z

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

2021-01-26T11:59:21.034300Z

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

2021-01-26T11:59:41.034900Z

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

2021-01-26T12:00:03.035500Z

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

2021-01-26T12:00:38.036600Z

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

dpsutton 2021-01-26T14:16:30.036900Z

https://github.com/clojure-emacs/cider/pull/2971

kirill.salykin 2021-01-26T14:17:19.037200Z

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

dpsutton 2021-01-26T14:17:46.037400Z

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

kirill.salykin 2021-01-26T14:18:10.037600Z

np, i didnt make any fix at all…

dpsutton 2021-01-26T14:21:09.037800Z

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

kirill.salykin 2021-01-26T14:21:42.038Z

happy to help

dpsutton 2021-01-26T14:53:59.038700Z

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

2021-01-26T16:57:04.039Z

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

2021-01-27T11:41:13.054800Z

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

2021-01-27T11:41:40.055Z

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

2021-01-27T11:41:54.055200Z

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

2021-01-27T15:23:30.056400Z

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

2021-01-27T15:23:48.056600Z

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

2021-01-26T16:57:16.039300Z

maybe it's not related with cider at all

valsen 2021-01-26T17:17:22.046800Z

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?

dpsutton 2021-01-26T17:22:45.047400Z

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

dpsutton 2021-01-26T17:23:12.048Z

oops. linked a comment rather than the issue

valsen 2021-01-26T17:24:31.048100Z

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

valsen 2021-01-26T17:28:24.048300Z

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…

dpsutton 2021-01-26T17:30:15.048500Z

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

valsen 2021-01-26T17:33:55.048700Z

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:

dpsutton 2021-01-26T18:01:10.048900Z

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

đź‘Ť 1
kirill.salykin 2021-01-26T21:42:16.050Z

Your fix seems eorking for me (did quick test)

kirill.salykin 2021-01-26T21:42:24.050400Z

Thank you so much!

🎉 1
blak3mill3r 2021-01-26T21:56:38.053400Z

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.