微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

rebar3 不编译 erlydtl 文件

如何解决rebar3 不编译 erlydtl 文件

我有一个问题,我的 rebar3 无法编译 erlydtl 文件 (.dtl),我已经环顾了一段时间,但没有解决。以前它有效,但在我将 erlang 升级到最新版本后,*.dtl 文件未编译,sync:on_sync 夜间无效。

这里有人对此有什么想法吗?

这是我的 rebar.conf 文件

{erl_opts,[debug_info]}.
{deps,[
    {sync,{git,"https://github.com/rustyio/sync.git",{branch,"master"}}},{erlydtl,"https://github.com/erlydtl/erlydtl.git",{ branch,{jsx,"https://github.com/talentdeficit/jsx.git","main"}}},{epgsql,"https://github.com/epgsql/epgsql.git"}},{gen_smtp,"https://github.com/gen-smtp/gen_smtp.git",{cowboy,{ git,"https://github.com/ninenines/cowboy.git",poolboy
]}.

{erlydtl_opts,[
    {doc_root,"src/templates"}
    %{outdir,"ebin"},%{compiler_options,[report,return,debug_info]},%{source_ext,".dtl"}
    %% {module_ext,"_view"}
]}.

{provider_hooks,[
    {pre_hooks,[{compile,compile}}]}
]}.

{relx,[
    {release,{core,"0.1.0"},[
        core,poolboy,erlydtl,account,realestate,realestate_admin,sync,sasl,epgsql,jsx,gen_smtp
    ]},{mode,dev},%% automatically picked up if the files
    %% exist but can be set manually,which
    %% is required if the names aren't exactly
    %% sys.config and vm.args
    {sys_config,"./config/sys.config"},{vm_args,"./config/vm.args"}

    %% the .src form of the configuration files do
    %% not require setting RELX_REPLACE_OS_VARS
    %% {sys_config_src,"./config/sys.config.src"},%% {vm_args_src,"./config/vm.args.src"}
]}.

{profiles,[
    {prod,[
        {relx,[
            %% prod is the default mode when prod
            %% profile is used,so does not have
            %% to be explicitly included like this
            {mode,prod}

            %% use minimal mode to exclude ERTS
            %% {mode,minimal}
        ]}
    ]}
]}.

{dialyzer,[
    %% Warns the undefined type or unkNown function
    {warnings,[ unkNown ]}
]}.

{xref_checks,[
    %% enable most checks,but avoid 'unused calls' which is often
    %% very verbose
    undefined_function_calls,undefined_functions,locals_not_used,deprecated_function_calls,deprecated_functions
]}.

{plugins,[ 
    % {rebar3_auto,"https://github.com/xuchaoqian/rebar3-auto.git","master"}}}
]}.

谢谢,

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。