I added clickable file links for IntelliJ's terminal to pretty stacktrace output.
It's not exactly pretty*, but 99% of the time I probably just want to click the last or second last file link.
(Those fully qualified file:/// is the only thing I could get working persistently in IntelliJ terminal. There is an old issue for more support for such things in IntelliJ.)
\* pun intended.
Code at: https://github.com/ivarref/pretty
@hlship would you like this as a pull request to clj-commons/pretty?
Screenshot:
... and if someone has a better suggestion for the code at line 206 https://github.com/ivarref/pretty/commit/78470ad785d1ad7a1d130eb4591a9e0dda9b4080#diff-424ee6abb7b8af32220a045ed4d757486b77fb5ef0cef3369c20af2e6590064dR13-R206 I'd like to improve it. It hardcodes "src" and "test" for lookup folders...
I don't think I'd take it as is. Having a more generic way to craft the output that's appropriate for the operating environment would be more useful, a callback that can be overridden but defaults to identity or some such. Given what it does tot he output (I don't know if it'd call that exactly "pretty" 🙂 ) it needs to be opt-in.