Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App from 0.4.10 template fails to install ltest as dependency #91

Open
vkz opened this issue May 27, 2024 · 3 comments
Open

App from 0.4.10 template fails to install ltest as dependency #91

vkz opened this issue May 27, 2024 · 3 comments

Comments

@vkz
Copy link

vkz commented May 27, 2024

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.

@tapickell
Copy link

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.

@flashcardsmobile-admin
Copy link

flashcardsmobile-admin commented Aug 29, 2024

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

@mpope9
Copy link
Contributor

mpope9 commented Sep 2, 2024

I filed an issue for the ltest-macros inclusion problem lfex/ltest#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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants