配置Lager - 我得到这个错误:undefined parse transform'lager_transform' [英] Configuring Lager - I get this error: undefined parse transform 'lager_transform'
问题描述
我正在测试这个 https://github.com/saleyn/erws_example 在R16B03上在Windows和Ubuntu上)
==> erws_example(compile)
src / erws_handler.erl:none:undefined parse transform'lager_transform'
错误:编译失败,而处理/ home / charles / erws_example:rebar_abort
我看过这个建议 http://philipcristiano.com/2013/05/27/ordering-of-rebar-dependencies.html
<到目前为止,我无法取得任何进展。
谢谢。
似乎rebar无法编译解析变换在编译其他内容之前( https://github.com/basho/rebar/issues/270)。解决方案是使用解析变换手动编译模块或使用文件级parse_transform编译器指令而不是项目级别。
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.
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.
这篇关于配置Lager - 我得到这个错误:undefined parse transform'lager_transform'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!