Fork me on GitHub

What is the use of the cider-nrepl middleware? Do I really need it to connect to an nrepl server using cider?


What will I miss if I don’t use the middleware, I am able to connect fine to an nrepl server without the middleware


I have inherited a project where there is hard dependency on cider-nrepl. We are not trying to aot compile our project for distribution so that the source is unavailable. I not be including project.clj in my jar file but cider-nrepl needs the project.clj and hence stops the jar from running because of this.


@frozenfire1992 CIDER will work even without cider-nrepl, but it will be limited when it comes to functionality.


Thank you! 🙂


I think that making a hard dep to some project is kind of weird, as I doubt anyone would be running any of the advanced debugging features in production, but who knows.


Can I somehow "open" the repl buffer literally? SImilar to what emacs/spacemacs offer me by default when opening a large file? The thing is that Emacs gets really slow when my app logs lot of messages to standard out so I'd like speed it up


@jumar I guess you can just enable saving the REPL log to a file and open that file.


You mean configuring my logging framework?


It's rather special, but in this case I was also debugging an issue when the error happened only when writing to stdout


I guess then you can save your REPL buffer as a file and work with that file directly.


My problem is that Emacs/Cider is just really slow in this case - in terminal it’s fine but Emacs will freeze for up to a minute while waiting for the output to be written to the repl buffer; the process that generates this output only takes several seconds


Emacs has well known issues with handling of long lines. That’s nothing that can be fixed in CIDER and the best recipe is to keep the REPL buffer’s size in check.


Thanks - I'll try that; it could help


I know it might not help in your case. I disable logging to console, enable logging to a file and have a separate terimal window open with tail -f log.


@U15BH4U4V that could work in most of the cases; I'll give it a try