Closed asummers closed 6 years ago
Just to be clear, without a decorator this warning is not emitted, I guess?
Correct.
On Fri, Jul 7, 2017, 7:56 AM Arjan Scherpenisse notifications@github.com wrote:
Just to be clear, without a decorator this warning is not emitted, I guess?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arjan/decorator/issues/12#issuecomment-313673519, or mute the thread https://github.com/notifications/unsubscribe-auth/AAywoJqwju1cH1CR1WKNoOIMYVdEqzdzks5sLirkgaJpZM4OPv9m .
This might be related (OTP 20 bug):
https://github.com/elixir-lang/elixir/issues/6539 https://bugs.erlang.org/browse/ERL-478
I think this is now resolved. Cant reproduce it in the latest release.
Hello! I suspect this is similar to #11 but when a function is decorated and has a function body with a
rescue
, and therescue
reraise
sSystem.stacktrace
the new OTP 20 builds emit warnings.This works:
This doesn't:
This emits:
Looking through the OTP commits, it looks like https://github.com/erlang/otp/pull/1453/files is the offending one, however both of those should probably emit the same code. Please let me know if I can provide any further details.
Thank you