New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display stack traces on error #11
Comments
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. |
Fake $10 reward to the person who does this issue. |
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 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. |
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? |
It works for me. Awesome! I can totally use this now. |
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. |
We should check for the presence of clj-stacktrace first and prefer that to the built-in stuff.
The text was updated successfully, but these errors were encountered: