expound

2021-04-24T20:07:13.001Z

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

❤️ 1
bbrinck 2021-04-24T23:40:40.003800Z

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.

bbrinck 2021-04-24T23:42:04.004900Z

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

bbrinck 2021-04-24T23:44:37.006700Z

@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)