Giter VIP home page Giter VIP logo

Comments (6)

hugoduncan avatar hugoduncan commented on May 12, 2024

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.

Raynes avatar Raynes commented on May 12, 2024

Fake $10 reward to the person who does this issue.

from cider.

technomancy avatar technomancy commented on May 12, 2024

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.

kingtim avatar kingtim commented on May 12, 2024

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.

Raynes avatar Raynes commented on May 12, 2024

It works for me. Awesome! I can totally use this now.

from cider.

kingtim avatar kingtim commented on May 12, 2024

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)

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.