-
Notifications
You must be signed in to change notification settings - Fork 450
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
["Request"] Improve stacktracer for Exceptions thrown from either
and either.eager
#2647
Comments
Hi @danitutu, do you have a minimal repro example and the full stack trace?. We can check if we can improve it or if this is an issue to be raised in the kotlin issue tracker. |
@raulraja Initial description updated. |
I wonder if we an improve this by implementing the |
Update with comment from Slack:
|
This should be solved with the new Raise based DSL, and for Raise errors can also be traced with the new traced API. |
Arrow version: 1.0.1
When an exception is thrown inside an
either
oreither.eager
.The exception loses the information about the place it was thrown.
My guess is that it's because of kotlin inlining.
Is there any way we can keep the stacktrace containing the line numbers of the stacktrace calls?
Here's an example:
The exception (look mostly at the top):
The line from the exception are either missing or are numbers that do not identify the lines that are being executed.
Without using
either
oreither.eager
:As you can see the code clearly states the stacktrace lines.
It's easier to try in the IDE, click the class name and see where it points to.
The text was updated successfully, but these errors were encountered: