Skip to content
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

stacktraces are empty #5

Closed
tcrayford opened this issue Jan 27, 2015 · 7 comments
Closed

stacktraces are empty #5

tcrayford opened this issue Jan 27, 2015 · 7 comments

Comments

@tcrayford
Copy link
Contributor

if I go to a new repl and try out expressions that throw exceptions, stacktraces come out empty:

http://cl.ly/image/081V1o3X2b11

@venantius
Copy link
Owner

Hmm, I thought I had fixed this a while back. I'll take a closer look at this tonight.

@rafadc
Copy link

rafadc commented Jan 28, 2015

As a workaround you can do

(pst)

after the stacktrace and it will be shown in the nice ultra format.

@tcrayford
Copy link
Contributor Author

@venantius : did you look at this yet?

@tcrayford
Copy link
Contributor Author

btw, I checked, and clojure.repl/pst is definitely bound to aviso's pretty print:

clojure.repl/pst
#<io.aviso.repl$pretty_pst@20bf2e8 io.aviso.repl$pretty_pst@20bf2e8>

and even calling (clojure.repl/pst (ex-info "" {})) gives a stacktrace, so this is really quite odd.

@tcrayford
Copy link
Contributor Author

@venantius : if you have any pointers, I'm happy going and looking

@venantius
Copy link
Owner

Yeah, sorry, haven't had a chance to check it out, but haven't forgotten. Busy week.

If you want to go digging, I'm sure the answer is in the disparity between ultra.repl and ultra.stacktrace; shouldn't be hard to toy with it a bit and achieve the desired behavior.

@tcrayford
Copy link
Contributor Author

yeah, got it, the docs for io.aviso.repl/pretty-repl-caught:

  "A replacement for `clojure.main/repl-caught` that prints the exception to `*err*`, without a stack trace or properties."

Think we just need to swap that out to be pretty-pst as per the comment in ultra.repl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants