配置啤酒 - 我收到此错误:未定义的解析转换'lager_transform'

Cha*_*gwu 5 erlang rebar

我正在 R16B03 上测试这个https://github.com/saleyn/erws_example(在 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
Run Code Online (Sandbox Code Playgroud)

我看到了这个建议http://philipcristiano.com/2013/05/27/ordering-of-rebar-dependency.html

到目前为止,我无法取得任何进展。

谢谢。

ser*_*eyz 3

在编译其他所有内容之前,rebar 似乎无法编译解析转换(https://github.com/basho/rebar/issues/270)。解决方案是手动使用解析转换编译模块或使用文件级 parse_transform 编译器指令而不是项目级。