Git Product home page Git Product logo

Comments (7)

venantius avatar venantius commented on September 2, 2024

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

from ultra.

rafadc avatar rafadc commented on September 2, 2024

As a workaround you can do

(pst)

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

from ultra.

tcrayford avatar tcrayford commented on September 2, 2024

@venantius : did you look at this yet?

from ultra.

tcrayford avatar tcrayford commented on September 2, 2024

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.

from ultra.

tcrayford avatar tcrayford commented on September 2, 2024

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

from ultra.

venantius avatar venantius commented on September 2, 2024

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.

from ultra.

tcrayford avatar tcrayford commented on September 2, 2024

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

from ultra.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.