I actually just encountered this error, and then intended to post how I fixed it as a reported issue and then forgot. So this is my current lein profile.clj
{:user {:plugins [[lein-vanity "0.1.0"]
[jonase/eastwood "0.0.2"]
[lein-ritz "0.6.0"]]
:dependencies [[ritz/ritz-nrepl-middleware "0.6.0"]
[ritz/ritz-debugger "0.6.0"]
[ritz/ritz-repl-utils "0.6.0"]
[clojure-complete "0.2.2"]]
:repl-options {:nrepl-middleware
[ritz.nrepl.middleware.javadoc/wrap-javadoc
ritz.nrepl.middleware.simple-complete/wrap-simple-complete]}}
:hooks [ritz.add-sources]}
Note that unlike the docs listed at ritz/nrepl, I also needed to add an explicit dependency for clojure-complete 0.2.2. I also needed to use the MELPA version of nrepl, nrepl-ritz. I still encounter some sort of issue where it appears that the documentation querying functions, find-doc, and doc and the like are not being properly brought into the repl namespace, which breaks ctrl-d d until I manually bring that into the namespace. I'm not quite certain what was causing that problem and have yet to find a permanent fix.
The inclusion of clojure-complete should definitely fix the error you are getting, but I definitely found setting up the whole ritz setup to be error prone.
Charlie