Ashish Negi
Ashish Negi

Reputation: 5301

Emacs clojure repl does not show any errors or exceptions

I am using emacs for clojure development. I use M-X cider-jack-in for repl.

When i ran my jetty server with one handler for file-upload, i saw that file-upload was not working. But repl was not showing any pprint logs.

I switched to console and did lein repl. After i did the workflow again, i saw the request logs and exception.

I wasted a lot of time in thinking what was going wrong.

can we enable that logging would be directed to repl ?

Upvotes: 4

Views: 604

Answers (1)

Arthur Ulfeldt
Arthur Ulfeldt

Reputation: 91534

check the buffer *nrepl-server* to see the full output. It's not visible by default in the buffer list though it will likely have what you are looking for.

Ctrl-x b *nrepl-server tab will cycle through the output buffers for your various cider sessions.

In practice mapping the output to the repl for all threads makes using the REPL really hard because I can't type without being interrupted.

Upvotes: 4

Related Questions