cider

A channel dedicated to the Clojure Interactive Development Environment that Rocks (aka CIDER). :cider:
stuartrexking 2021-01-28T03:04:01.066600Z

This was fixed recently in this update https://github.com/clojure-emacs/cider/commit/a16ec7b19cac7997ab2adda7b158374f9391baeb

stuartrexking 2021-01-28T03:06:14.066800Z

There was a commit in orchard that broke the class loader. https://github.com/clojure-emacs/orchard/commit/fd99c15f962b085e3da7c451eedcb31f7a12c4f6

stuartrexking 2021-01-28T03:06:40.067Z

I haven’t tried 0.25.8. I’m using 0.25.6.

stuartrexking 2021-01-28T03:07:05.067200Z

See this conversation https://clojurians.slack.com/archives/C0617A8PQ/p1611468866016600

stuartrexking 2021-01-28T05:19:42.069300Z

I can connect to a shadow-cljs nrepl and execute code from the repl window (js/alert etc). When I try to evaluate code, it fails. The repl is “pending-cljs” in the buffer window. Any ideas on how to figure out how to evaluate from code in cljs with shadow?

stuartrexking 2021-01-28T05:20:22.069700Z

Also, when I’m in a clojurescript file i get cider[not connected]

Eamonn Sullivan 2021-01-28T06:19:28.071300Z

Ah, yikes, sorry. I didn’t see the earlier conversation. I wonder why I’m still getting this in 25.8, though. :thinking_face:

2021-01-28T06:55:58.073500Z

Do you have the latest version of cider and shadow-cljs? If yes, insure you have nrepl/piggieback as dependency

2021-01-28T06:56:38.074400Z

[this how I solved a similar problem in the past{

bozhidar 2021-01-28T07:19:14.075Z

@neo2551 Technically speaking, shadow-cljs doesn't use piggieback - it implements its own version of it.

2021-01-28T07:20:33.076600Z

Okay! Thanks for the details :) but I did have the same problem, and it was solved by just adding the deps [maybe just correlation].

2021-01-28T07:21:04.077400Z

One day I should start getting interested in my tools, but I fear so much :)

2021-01-28T07:21:22.078Z

I still can’t understand how to make an async call with cider to the repl haha

bozhidar 2021-01-28T07:24:42.078300Z

Via the API?

2021-01-28T21:02:55.081800Z

Hello! I have been trying to write a fn which pages through a seq of items, and pauses b/w page-size items: what is the simplest way to read a single char from the console? I have tried (read), and various use cases of jline and http://java.io readers, but most of the time the readers destroy my cider session, or I have to enter an entire clojure form + Enter, etc…any ideas? Thx!

FiVo 2021-01-28T21:04:58.082400Z

Have you tried read-line?

2021-01-28T21:08:19.084100Z

I was trying to trigger a reaction on a single keystroke, but will use that if nothing else works..

2021-01-28T21:09:27.084700Z

The ideal would be a read-char 🙂

2021-01-28T21:09:55.084900Z

Thx @finn.volkel

2021-01-28T21:10:43.085700Z

I was curious to see if clojure-lanterna/curses might do the trick, but there is a learning curve and use warnings

FiVo 2021-01-28T21:13:29.086400Z

You can also do (.read *in*) but in both cases you also need to press enter.

2021-01-28T21:15:47.089700Z

@finn.volkel (read-line) works ..but I am wondering what it does to work smoothly as opposed to trying to implement a ’read-char…

FiVo 2021-01-28T21:19:16.092200Z

I am having a project (think git) where the the .dir-locals.el is not sitting at the root. I am starting emacs from the dir that contains .dir-locals.el but normal jack-in does not seem to pick it up. I checked default-directory is set to the dir that contains .dir-locals.el . When I do a jack in from a dired buffer that contains the .dir-locals.el everything works as expected. Where does Cider normally try to start a project from? Can this be configured ?