Hello everyone,
I am trying to use rebar3 with lfe, from the casting spels in lfe book.
I am getting this error when running the command.
$ rebar3 lfe repl
===> Verifying dependencies...
===> Compiling simple
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of `rebar3 report "your command"
The rebar3.crashdump contains
Error: undef
[{rebar_app_utils,app_src_to_app,
["/home/sqrt/DATA_2021/code/_LFE/casting-spels/code/_build/default/lib/simple",
"/home/sqrt/DATA_2021/code/_LFE/casting-spels/code/apps/simple/src/simple.app.src"],
[]},
{rebar3_lfe_utils,copy_app_src,1,
[{file,"/home/sqrt/DATA_2021/code/_LFE/casting-spels/code/_build/default/plugins/rebar3_lfe/src/rebar3_lfe_utils.erl"},
{line,35}]},
{rebar3_lfe_prv_compile,compile_app,1,
[{file,"/home/sqrt/DATA_2021/code/_LFE/casting-spels/code/_build/default/plugins/rebar3_lfe/src/rebar3_lfe_prv_compile.erl"},
{line,59}]},
{rebar3_lfe_prv_compile,'-compile/1-lc$^0/1-0-',1,
[{file,"/home/sqrt/DATA_2021/code/_LFE/casting-spels/code/_build/default/plugins/rebar3_lfe/src/rebar3_lfe_prv_compile.erl"},
{line,54}]},
{rebar3_lfe_prv_compile,compile,1,
[{file,"/home/sqrt/DATA_2021/code/_LFE/casting-spels/code/_build/default/plugins/rebar3_lfe/src/rebar3_lfe_prv_compile.erl"},
{line,54}]},
{rebar_core,do,2,
[{file,"/tmp/rebar_build_RVMDk0/rebar3-3.16.1/src/rebar_core.erl"},
{line,155}]},
{rebar_prv_do,do_task,5,
[{file,"/tmp/rebar_build_RVMDk0/rebar3-3.16.1/src/rebar_prv_do.erl"},
{line,87}]},
{rebar_core,do,2,
[{file,"/tmp/rebar_build_RVMDk0/rebar3-3.16.1/src/rebar_core.erl"},
{line,155}]}]
I can run lfe
$ lfe
Erlang/OTP 24 [erts-12.0.4] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]
..-~.~_~---..
( \\ ) | A Lisp-2+ on the Erlang VM
|`-.._/_\\_.-': | Type (help) for usage info.
| g |_ \ |
| n | | | Docs: http://docs.lfe.io/
| a / / | Source: http://github.com/rvirding/lfe
\ l |_/ |
\ r / | LFE v1.2.1 (abort with ^G)
`-E___.-'
lfe>
I suspect rebar3_lfe is not compatible with OTP 24, but I am not sure of the reason.
I am running
rebar 3.16.1 on Erlang/OTP 24 Erts 12.0.4 (installed with asdf)
on Ubuntu 20.04, with Erlang/OTP 24
What am I missing?
Thanks for taking time.