clojure-emacs / clojure-emacs/orchard

Navigable inspected exceptions

Open
#227 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
340
Forks
52
Avg merge
55m
Merged PRs (30d)
5

Description

Currently, if we're inspecting an Exception, we cannot directly navigate to the file/line of each element of the rendered stacktrace.

i.e., this stacktrace is just text atm:

![image](https://github.com/clojure-emacs/cider/assets/1162994/72fc2639-33af-4d64-9bff-d70b04dbc720)

Currently, a workaround is to `d` (`cider-inspector-def-current-val`) the inspected Exception, and then `throw` it in the repl. `cider-stacktrace-analyze-in-region` may also work.

I think that something very "inspector-like" would be to reify the stacktrace into something that also is navigable:

* navigable cause chain
* individual stacktraceelements rendered similarly to members of a vector
* a keybinding / click action to open stacktraceelements as clojure buffer

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.