-
-
Notifications
You must be signed in to change notification settings - Fork 12
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
Feature request: show stacktrace when eval produces an error #37
Comments
Avoids python stacktrace, makes error readable later
Avoids python stacktrace, makes error readable later
I added a workaround for this issue. Right now, I'm accumulating the errors (on whichever command sent to the nrepl) for them to be displayed if you want to. That also saves us from the python stacktrace if the To read from the accumulated error, one must run the following: :lua require("acid.middleweares.err).show() "Shows last error
:lua require("acid.middleweares.err).show(2) "Shows (last - 2) error |
That's a nice idea for a workaround! It doesn't seem to be working for me, though. When I evaluate
Then when I run
Here is
No additional logs are written when I run the |
I'm implementing sessions finally, which allow us to implement an actual wrapper for errors since they now can belong to a session we control. I'll follow up on that once #55 is merged. Meanwhile, testing and trying are very welcome :) |
Btw, just tested and, on #55, one can: :AcidEval (/ 0 0)
:AcidEval *e
:messages To get full stacktrace of previous error |
Sessions were merged, so I can now proceed with a proper handling of errors/stacktraces. |
When I evaluate a form that throws an error, e.g.
(/ 1 0)
, I get the following error:Then I see the following written to the virtualtext:
Some ideas:
It might be nice to strip out the ANSI color codes in the virtualtext so that the message is easier to read.
It would be really great if the stacktrace were easily accessible somehow.
:AcidShowError
command that I could run with my cursor over the line that produced the exception?:AcidShowLastError
that would show you*e
?:call AcidInsertEval()
and then evaluating*e
, but that just insertednil
into my buffer.The text was updated successfully, but these errors were encountered: