-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
@efcasado would it possible to update behaviours2 to make it work with recent Erlang releases (24+25) and rebar3?
As you can see, it fails to compile even the default example:
-module(db_user).
-compile({parse_transform, bhvs2_pt}).
-behaviour(my_awesome_behaviour).
f2() ->
'custom_f2'.===> Compiling apps/src/db_user.erl failed
apps/minex_user/src/db_user.erl:none: error in parse transform 'bhv2_pt':
exception error: undefined function meta:behaviours/1
in function bhv2_pt:parse_transform/2 (_build/default/lib/behaviours2/src/bhv2_pt.erl, line 47)
in call from compile:foldl_transform/3 (compile.erl, line 1147)
in call from compile:fold_comp/4 (compile.erl, line 418)
in call from compile:internal_comp/5 (compile.erl, line 402)
in call from compile:'-internal_fun/2-anonymous-0-'/2 (compile.erl, line 229)
/src/rebar_compiler_erl.erl, line 157)
/src/rebar_compiler.erl, line 329)
I'm using rebar 3.19.0 and Erlang/OTP 24 (Erts 12.3.1). The same issue happens with Erlang 25.
Many thanks
Metadata
Metadata
Assignees
Labels
No labels