Fork me on GitHub
#leiningen
<
2019-01-30
>
hlship00:01:01

I'm working to update the io.aviso/pretty library/plugin to work with more recent Leiningen, where implicit middleware and hooks are deprecated. It seems like I need to update my documentation to say "add io.aviso/pretty to :plugins, but also add pretty.plugin/inject-pretty to :middleware". Is that correct, or is there a different mechanism to allow plugins to add middleware. I also have a hook, but it exists just to invoke io.aviso.repl/install-pretty-exceptions (which overrides some functions in clojure.main and clojure.repl). I could move that to the middleware function, but I really prefer that to be executed as early as possible.

hlship19:01:30

Turns out, the hook never really worked, because leiningen.with-profile/apply-task-with-profiles does the reporting, so that goes away. No way to reasonably improve exceptions that occur inside Leiningen plugins.