Fork me on GitHub

I have cider-special-mode-truncate-lines t set but the cider test result buffer doesn't truncate.

Chris O’Donnell17:01:34

I'm running into an interesting bug that appears to be caused by cider-nrepl middleware. If I start an nrepl server with /usr/local/bin/clojure -Sdeps '{:deps {nrepl {:mvn/version "0.6.0"} cider/cider-nrepl {:mvn/version "0.23.0-SNAPSHOT"}}}' -m nrepl.cmdline --middleware '["cider.nrepl/cider-middleware"]' in an empty project, connect, and evaluate (.URI. ":@localhost:5432/postgres") at the repl, I get the error

Error printing return value (MalformedURLException) at .URL/<init> (
unknown protocol: postgresql
Doing the same, but without --middleware '["cider.nrepl/cider-middleware"]' results in the expected result: #object[.URI 0x16b4a650 ":@localhost:5432/postgres"].

Chris O’Donnell17:01:04

Can anyone else reproduce this? Should I create a github issue?


I believe that’s the image displaying middleware trying to fetch the uri in your repl buffer

Chris O’Donnell18:01:07

@dpsutton Turning off cider-repl-use-content-types did the trick. Thank you!


Yes, that is sounding more and more like it was a bad idea. It’s caused me confusion too.