This was fixed recently in this update https://github.com/clojure-emacs/cider/commit/a16ec7b19cac7997ab2adda7b158374f9391baeb
There was a commit in orchard that broke the class loader. https://github.com/clojure-emacs/orchard/commit/fd99c15f962b085e3da7c451eedcb31f7a12c4f6
I haven’t tried 0.25.8. I’m using 0.25.6.
See this conversation https://clojurians.slack.com/archives/C0617A8PQ/p1611468866016600
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?
Also, when I’m in a clojurescript file i get cider[not connected]
Ah, yikes, sorry. I didn’t see the earlier conversation. I wonder why I’m still getting this in 25.8, though. :thinking_face:
Do you have the latest version of cider and shadow-cljs? If yes, insure you have nrepl/piggieback as dependency
[this how I solved a similar problem in the past{
@neo2551 Technically speaking, shadow-cljs doesn't use piggieback - it implements its own version of it.
Okay! Thanks for the details :) but I did have the same problem, and it was solved by just adding the deps [maybe just correlation].
One day I should start getting interested in my tools, but I fear so much :)
I still can’t understand how to make an async call with cider to the repl haha
Via the API?
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!
Have you tried read-line
?
I was trying to trigger a reaction on a single keystroke, but will use that if nothing else works..
The ideal would be a read-char
🙂
Thx @finn.volkel
I was curious to see if clojure-lanterna/curses might do the trick, but there is a learning curve and use warnings
You can also do (.read *in*)
but in both cases you also need to press enter.
@finn.volkel (read-line)
works ..but I am wondering what it does to work smoothly as opposed to trying to implement a ’read-char…
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 ?