Add cider-stacktrace-analyze-in-region
Add command to analyze and inspect the stacktrace in region
Please see:
- https://github.com/clojure-emacs/orchard/pull/164
- https://github.com/clojure-emacs/cider-nrepl/pull/758
Before submitting the PR make sure the following things have been done (and denote this by checking the relevant checkboxes):
- [x] The commits are consistent with our contribution guidelines
- [ ] You've added tests (if possible) to cover your change(s)
- [ ] All tests are passing (
eldev test) - [ ] All code passes the linter (
eldev lint) which is based onelisp-lintand includes- byte-compilation,
checkdoc, check-declare, packaging metadata, indentation, and trailing whitespace checks.
- byte-compilation,
- [ ] You've updated the changelog (if adding/changing user-visible functionality)
- [ ] You've updated the user manual (if adding/changing user-visible functionality)
Another thing that you may be interested in to do is making a stacktrace 'clickable'.
Often when a repl command emits a stacktrace, each element of that stacktrace is clickable, taking you to the right file/line. (I think if you grep for fontify you will find the related mechanism we use?)
That seems super handy as it's an "inline UI". For instance I might paste a stacktrace from Datadog into *scratch* and just leave it there for a while.
If it turns out to be disproportionately hard, then it's no big deal.
Another thing that you may be interested in to do is making a stacktrace 'clickable'.
Clickable in what way? Even now you can click on stack frames and go to the revelant source code.
I mean an arbitrary one e.g. pasted from the clipboard
The new command should be mentioned somewhere in the mode menu and in the "dealing with stacktraces" docs.
I guess we're mostly ready here and we'll move forward with a proper review after the stacktrace-related code is moved to haystack and haystack is integrated into cider-nrepl.
It was an epic journey but we've made it to our destination! 🎉 Thanks for you persistence on this one and the amazing work you've done across the board! 🙇♂️
Nice, also thanks to you and @vemv and @benedekfazekas for all the help. See you next time!
Cheers 🍻