Fork me on GitHub
#expound
<
2021-04-24
>
Drew Verlee20:04:13

How would i configure it so i get expound wrapped spec error messages in the "cider-error" buffer rather then the default ones?

❤️ 3
bbrinck23:04:40

My understanding (and I’m not a cider expert, so take this with a grain of salt), is that it would require changes to the cider error buffer and/or the nREPL error handler. When an error is returned from nNEPL, cider seems to check if it’s a spec error and then formats it in a custom way. There would need to be a way to send the error to expound for formatting.

bbrinck23:04:04

Or maybe, more accurately, nREPL would need to adjust the error message before it sends it to cider. I think this is how the Clem middleware works https://gitlab.com/unc-app-lab/clem

bbrinck23:04:37

@drewverlee I’d certainly accept a PR for some nREPL middleware in the expound repo (assuming that it didn’t introduce any dependencies into Expound for non-cider users)