-
Notifications
You must be signed in to change notification settings - Fork 512
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
rebar3 crashing when compiling dependency with Elixir v1.15.0 (OTP 26) #2799
Comments
|
I'm facing the same issue on Elixir 1.15 (but OTP 25 in my case). Running the command with
|
We experienced this same issue. Here's the output of Rebar report
Running with Adding this line to
Cowlib had the same problem, but the same fix solved it as well. |
I ran into this in my Elixir CI pipeline after upgrading from 1.14 to 1.15. Fixed by clearing out the GitHub Actions cache. |
I also faced this problem now. Sorry, I couldn't solve this work around
I tried changing the version of Erlang, but could not solve the problem. I think this is a problem with Elixir on v1.5. Furthermore, I have not included telemetry package in mix.exs. So, is it a problem on cowboy's side? |
I've also started running into this recently, as has a coworker. Both of us are on newer M2 macOS machines and using the latest versions of ❯ DIAGNOSTIC=1 mix compile
===> Expanded command sequence to be run: []
===> Running provider: do
===> Expanded command sequence to be run: [app_discovery,{bare,compile}]
===> Running provider: app_discovery
===> Falling back to app.src file because .app failed: Cannot read app file: "/Users/noah/Git/backend/deps/ranch/ebin/ranch.app"
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> Uncaught error: badarg
===> Stack trace to the error location:
[{erlang,'++',
[undefined,".script"],
[{error_info,#{module => erl_erts_errors}}]},
{rebar_config,consult_file_,1,
[{file,"/rebar3/apps/rebar/src/rebar_config.erl"},{line,260}]},
{rebar_app_discover,create_app_info,3,
[{file,"/rebar3/apps/rebar/src/rebar_app_discover.erl"},
{line,413}]},
{rebar_app_discover,try_handle_app_src_file,4,
[{file,"/rebar3/apps/rebar/src/rebar_app_discover.erl"},
{line,518}]},
{rebar_utils,filtermap,2,
[{file,"/rebar3/apps/rebar/src/rebar_utils.erl"},{line,114}]},
{rebar_app_discover,do,2,
[{file,"/rebar3/apps/rebar/src/rebar_app_discover.erl"},
{line,28}]},
{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}]}]
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
** (Mix) Could not compile dependency :ranch, "/Users/noah/.asdf/installs/elixir/1.15.7-otp-26/.mix/elixir/1-15/rebar3 bare compile --paths /Users/noah/Git/backend/_build/dev/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile ranch --force", update it with "mix deps.update ranch" or clean it with "mix deps.clean ranch" I'm not sure if it's related, but searching for the error message and "bare compile" did bring up this issue: #2102 Running Re-installing the Erlang/Elixir versions also doesn't seem to help (even after installing Running I also tried uninstalling the EDIT: The thing that solved it for me was
Anyway, disregard me! 😅 |
Environment
rebar3 report
to your message:If you can provide an example code base to reproduce the issue on, we will generally be able to provide more help, and faster.
Current behaviour
rebar3
crashes when compiling theranch
library. It doesn't happen with my other project that also includes the same version of ranch.Expected behavior
It compiles the
ranch
dependency correctly.The text was updated successfully, but these errors were encountered: