[ANN] stacktrace_compat: get_stacktrace() compatibility on OTP 21

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[ANN] stacktrace_compat: get_stacktrace() compatibility on OTP 21

Guilherme Andrade
Hello list,

I’m pleased to announce the release of stacktrace_compat 1.0, a workaround for the deprecation of erlang:get_stacktrace() on Erlang/OTP 21.

It intends on smoothing near-future maintenance of projects that are to support both pre- and post-deprecation code by avoiding code duplication or ungainly macros.

It replaces calls to :get_stacktrace() with references to bindings (whether explicit or implicit) that capture the stacktrace using the new syntax.

* Overview: https://github.com/g-andrade/stacktrace_compat/blob/master/README.md
* Hex.pm package: https://hex.pm/packages/stacktrace_compat

--
Guilherme

_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] stacktrace_compat: get_stacktrace() compatibility on OTP 21

Heinz N. Gies

That’s great stuff thanks!

 

From: [hidden email] <[hidden email]> On Behalf Of Guilherme Andrade
Sent: Saturday, June 23, 2018 13:20
To: Erlang-Questions Questions <[hidden email]>
Subject: [erlang-questions] [ANN] stacktrace_compat: get_stacktrace() compatibility on OTP 21

 

Hello list,

I’m pleased to announce the release of stacktrace_compat 1.0, a workaround for the deprecation of erlang:get_stacktrace() on Erlang/OTP 21.

It intends on smoothing near-future maintenance of projects that are to support both pre- and post-deprecation code by avoiding code duplication or ungainly macros.

It replaces calls to :get_stacktrace() with references to bindings (whether explicit or implicit) that capture the stacktrace using the new syntax.

* Overview: https://github.com/g-andrade/stacktrace_compat/blob/master/README.md
* Hex.pm package: https://hex.pm/packages/stacktrace_compat

--

Guilherme


_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions
Reply | Threaded
Open this post in threaded view
|

Re: [ANN] stacktrace_compat: get_stacktrace() compatibility on OTP 21

Guilherme Andrade
In reply to this post by Guilherme Andrade
Hello list,

Version 1.0.1 of stacktrace_compat, a workaround for the deprecation of erlang:get_stacktrace() on Erlang/OTP 21, has been released.

Fixed:
- unsafe use of stacktrace variables exported from previous try-catch blocks



_______________________________________________
erlang-questions mailing list
[hidden email]
http://erlang.org/mailman/listinfo/erlang-questions