App from 0.4.10 template fails to install ltest as dependency
Using rebar3_lfe v 0.4.10 I'm getting this after:
$ rebar3 new lfe-app rtrader
$ cd rtrader
$ rebar3 lfe repl
... installs a bunch of deps ...
...
===> Compiling _build/default/lib/ltest/src/ltest-runner.lfe failed
/home/user/code/rtrader/erl/rtrader/_build/default/lib/ltest/src/ltest-runner.lfe:4: can't find include lib include/ltest-records.lfe
First, I've noticed template has rebar3_lfe hardcoded to 0.4.9, which is weird.
Above goes away if I bump that version to latest release 0.4.10 and bump ltest v to latest release 0.13.8 from the template one of 0.13.6.
I've no clue what I'm doing cause I'm new to both Erlang and LFE.
This worked for me seeing a similar error on running a new lfe-app.
Thank you.
This should be updated in the template used to create the rebar.config file.
I have a similar but different issue when I try to follow the rebar3 quickstart in the Machine Manual:
$ rebar3 lfe repl
===> Verifying dependencies...
===> Compiling _build/default/lib/ltest/src/ltest.lfe failed
/home/.../projects/lfe-quickstart/my-test-lib/_build/default/lib/ltest/src/ltest.lfe:4: can't find include lib include/ltest-macros.lfe
I filed an issue for the ltest-macros inclusion problem https://github.com/lfex/ltest/issues/77 but maybe it belongs here. Removing the dep from the rebar.config, downgrading the rebar3_lfe plugin to 0.4.9, and removing the _build and rebar.lock files temporarily fixed the issue.
The workaround mentioned by @vkz(bumping versions) was correct. Those were know bugs with those releases.
If folks are still running into these issues, be sure to check your deps: use the latest rebar3, the latest rebar3_lfe (0.5.0 is coming out soon), and the latest LFE.