Open simonelnahas opened 4 months ago
LFE is installed and works with rebar
> rebar3 lfe repl
===> Verifying dependencies...
Erlang/OTP 26 [erts-14.2.5] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit] [dtrace]
..-~.~_~---..
( \\ ) | A Lisp-2+ on the Erlang VM
|`-.._/_\\_.-': | Type (help) for usage info.
| g |_ \ |
| n | | | Docs: http://docs.lfe.io/
| a / / | Source: http://github.com/lfe/lfe
\ l |_/ |
\ r / | LFE v2.1.2 (abort with ^C; enter JCL with ^G)
`-E___.-'
lfe>
I believe I have isolated the error to be in LFE: https://github.com/lfe/lfe/issues/489
Hmm yeah, I also tried to upgrade it (haven't used that tool for years) and it seems I can not even depend on lfe
in mix right now... Saw your issue in their repo, no answer, tried some things myself but to be honest it is related to how mix uses rebar to compile erlang deps. Basically as part of the LFE dep compilation it does this:
DIAGNOSTIC=1 /Users/meddle/.asdf/installs/elixir/1.16.2-otp-26/.mix/elixir/1-16/rebar3 bare compile --paths /Users/meddle/development/lfe/echo/mix_lfe/_build/dev/lib/lfe/ebin/
===> Expanded command sequence to be run: []
===> Running provider: do
===> Expanded command sequence to be run: [app_discovery,{bare,compile}]
===> Running provider: app_discovery
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: {badmatch,{error,enoent}}
===> Stack trace to the error location:
[{ec_file,real_dir_path,1,
[{file,"/rebar3/vendor/erlware_commons/src/ec_file.erl"},
{line,220}]},
{rebar_app_discover,'-define_root_app/2-fun-0-',2,
[{file,"/rebar3/apps/rebar/src/rebar_app_discover.erl"},
{line,82}]},
{ec_lists,find,2,
[{file,"/rebar3/vendor/erlware_commons/src/ec_lists.erl"},
{line,45}]},
{rebar_app_discover,define_root_app,2,
[{file,"/rebar3/apps/rebar/src/rebar_app_discover.erl"},
{line,81}]},
{rebar_app_discover,do,2,
[{file,"/rebar3/apps/rebar/src/rebar_app_discover.erl"},
{line,35}]},
{rebar_prv_app_discovery,do,1,
[{file,"/rebar3/apps/rebar/src/rebar_prv_app_discovery.erl"},
{line,38}]},
{rebar_core,do,2,[{file,"/rebar3/apps/rebar/src/rebar_core.erl"},{line,155}]},
{rebar_prv_do,do_task,5,
[{file,"/rebar3/apps/rebar/src/rebar_prv_do.erl"},{line,87}]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
And this is the error, which I spent some time debugging, but am not sure if I can understand even...
It seems mix_lfe doesn't work with the latest version of either Elixir or LFE. I have installed the