-
Notifications
You must be signed in to change notification settings - Fork 601
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
Remove stacktrace warning #242
base: master
Are you sure you want to change the base?
Conversation
lib/execute.ex
Outdated
@@ -40,7 +40,7 @@ defmodule Execute do | |||
|
|||
defp expand(error, module) do | |||
{file, line} = | |||
System.stacktrace() | |||
:erlang.get_stacktrace() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will have to be rebased due to a change in #251
FWIW, this is not going to work on recent OTP versions. Erlang/OTP 23 always returns an empty list for stacktrace and the next version will fully remove the function. |
@josevalim @iamvery My current thinking is that we can avoid going through the stacktrace to find file & line if we just capture them in the generated I'll try a PR this evening and update this :) |
67198dc
to
2c4e1f5
Compare
I'm quite happy with this new approach. |
Using STACKTRACE is not really an option due to it requiring a
try/catch block, which we'd have to possibly add to every koan.
Side-step the issue by calling into Erlang