Giter Club home page Giter Club logo

stacktrace_compat's Introduction

stacktrace_compat

Given the upcoming release of Erlang/OTP 24, stacktrace_compat is no longer maintained as of April 2nd, 2021.

โš ๏ธ You should discontinue any use of this library unless you strictly need to maintain compatibility with Erlang/OTP versions older than 21 (released back in 2018.)

How do I do that?

Start by:

  1. removing, from rebar.config:
    • under erl_opts, {parse_transform, stacktrace_transform}
    • under deps, stacktrace_compat
  2. removing, from your_app.app.src:
    • under applications, stacktrace_compat (it needn't be there, but it may be)

..and then:

  1. search your code for calls to erlang:get_stacktrace();
  2. replace them with the current syntax for capturing stacktraces.
History

stacktrace_compat defined a parse transform (stacktrace_transform) which, when applied to modules on OTP 21+, replaced calls to erlang:get_stacktrace() with instances of the stacktrace binding that was to be captured on the closest catch pattern up the abstract syntax tree (within the same named function.)

If no binding had been defined, a generated name would have been used that was likely to be conflict free.

If no catch pattern was found, no replacement was made.


Generated by EDoc

stacktrace_compat's People

Contributors

g-andrade avatar paulo-ferraz-oliveira avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

stacktrace_compat's Issues

Tests won't run on OTP 24

Maybe it's intended for the lib. to not be tested/testable, at that time, but I guess we can try to preemptively fix these warnings.

Warning: erlang:get_stacktrace/0 is deprecated and will be removed in OTP 24; use use the new try/catch syntax for retrieving the stack backtrace

(obtained with rebar3 ct on OTP 23).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.