Comments (6)
In ritz, the clojure.lang.ExceptionData exceptions also display the map object contained in the exception. This would be nice to have in nrepl too. Not sure if that is a core, clj-stacktrace, or nrepl concern.
from cider.
Fake $10 reward to the person who does this issue.
from cider.
I have a "stacktraces" branch that implements the beginnings of this, but I realized that it's not a very good approach. I didn't realize the err handler was for output on stderr; i thought it was just triggered when an error occurred.
I think we'll need to change this so we can wrap all outgoing evals in a try/catch that uses clj-stacktrace.repl/pst+
or falls back to clojure.stacktrace/print-stack-trace
if it isn't found, and then the default err-handler should just put the output in an *nREPL error*
buffer. If there's a way to override clojure.main/repl
's :caught
function, that would be even better.
Another hiccup is that ANSI color codes currently cause the bencode implementation to choke, so we'll need to stick with monochrome stacktraces until that's addressed.
from cider.
nREPL will send a response with a status of "eval-error" when an exception occurs. I created a stacktrace branch which captures this event and displays a stacktrace. What do you think?
from cider.
It works for me. Awesome! I can totally use this now.
from cider.
stacktrace branch merged, which implements basic printing of stacktraces. We can handle the issues ANSI color codes and the display of the map object suggested by @hugoduncan as separate items.
from cider.
Related Issues (20)
- The state handler can apply dynamic font locking to Clojure buffers of unrelated Sesman sessions
- Use random local ports when doing automatic port forwarding or reuse existing tunnels HOT 7
- Streamline navigating from `*cider-error*` to the inspector HOT 3
- Cider error: cider-get-ns-name: Wrong number of arguments HOT 9
- lein.sh should not hardcode `~/.emacs.d` HOT 3
- Make `cider-javadoc` work with Javadocs located within .jars
- Inspector: render block tags
- Make `*cider-test-report*` items clickable
- Unable to jack-in in some cases when `cider-enrich-classpath` is `t` HOT 11
- Problematic error reporting when cider-clojure-compilation-error-phases is `t` (unexpected possible value) HOT 7
- Inspector: retain Point position across screens
- Timbre logs can show in the minibuffer HOT 18
- configure cider to use PowerShell 7.x and not Windows PowerShell 5.1 on windows HOT 23
- Logback logs not showing in `*cider-log*` buffer HOT 5
- CIDER does not work with Java 21 HOT 1
- Invalid face box when starting in debug mode HOT 1
- `[shadow-cljs]` output lost when repl-ing node http server HOT 2
- I have developed a simple way to search Clojure symbols with CIDER; merge into this package or keep separate? HOT 6
- Customize banner HOT 8
- Can't cider-jack-in to projects with private git dependencies HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cider.