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

烂漫一生 提交于 2019-12-10 17:08:49

问题


I'm testing this https://github.com/saleyn/erws_example on R16B03 (both on windows & 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've seen this suggestion http://philipcristiano.com/2013/05/27/ordering-of-rebar-dependencies.html

So far, i'm unable to get any headway.

Thanks.


回答1:


It seems rebar can not compile parse transforms before compiling everything else (https://github.com/basho/rebar/issues/270). The solution is to compile module with parse transform manually or use file-level parse_transform compiler directive instead of project level.




回答2:


Try to put lager to first position in rebar dependency list. it will fix it. rebar ordering compile dependencies according to this list, not dependency tree))



来源:https://stackoverflow.com/questions/20813513/configuring-lager-i-get-this-error-undefined-parse-transform-lager-transform

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!