Lager setup - I get this error: undefined parse transform 'lager_transform'

I am testing this https://github.com/saleyn/erws_example on R16B03 (both on windows and Ubuntu)

==> erws_example (compile) src/erws_handler.erl:none: undefined parse transform 'lager_transform' ERROR: compile failed while processing /home/charles/erws_example: rebar_abort 

I saw this offer http://philipcristiano.com/2013/05/27/ordering-of-rebar-dependencies.html

Until now, I could not succeed.

Thanks.

+3
source share
2 answers

Armature doesn't seem to be able to compile syntax conversions before compiling everything else ( https://github.com/basho/rebar/issues/270 ). The solution is to compile the module with parsing manually or use the parse_transform compiler directive at the file level instead of the project level.

+3
source

Try putting lager in the first position in the list of rebar dependencies. he will fix it. rebar orders the compilation of dependencies according to this list, not the dependency tree))

+1
source

Source: https://habr.com/ru/post/1433111/


All Articles