silverdr

silverdr

I apologise for the misfire → previous topic of the same summary got deleted by my mistake. Now once more

After updating to Erlang/OTP 25 I get:

dependency :neotoma is using Rebar 2, which is no longer maintained and no longer works in recent Erlang/OTP versions. Remove the :manager option or set it to :rebar3 instead

Any quick fix for this? Other than downgrading Erlang/OTP :wink:

Showing Posts 1 to 10

josevalim

josevalim

Creator of Elixir

How is it specified in your mix.exs? IIRC we will only use Rebar2 if you explicitly opt-in to that.

silverdr

silverdr OP

Neither Rebar nor Neotoma is specified there. It is a dependency of something. Looking at the mix.lock file it looks like neotoma is pulled by “slime”. I checked its issues and found the suggestion:

https://github.com/slime-lang/slime/issues/170#issuecomment-1099148288

to specify neotoma explicitly in the mix.exs file

{:neotoma, "~> 1.7.3", manager: :rebar3, override: true},

but this didn’t help. So things apparently changed but maybe there’s still a way to override this?

josevalim

josevalim

Creator of Elixir

What you wrote should be enough to overwrite it in your mix.exs file. If not, please open up an issue in Elixir’s issues tracker with the specific steps to reproduce it. :slight_smile:

silverdr

silverdr OP

This worked with OTP 24. With 25 things still break:

=ERROR REPORT==== 23-May-2022::19:12:50.195973 ===
beam/beam_load.c(551): Error loading function rebar3:parse_args/1: op put_tuple u x:
  please re-compile this module with an Erlang/OTP 25 compiler

escript: exception error: undefined function rebar3:main/1
  in function  escript:run/2 (escript.erl, line 750)
  in call from escript:start/1 (escript.erl, line 277)
  in call from init:start_em/1
  in call from init:do_boot/3

Well, I should of course have mentioned that it breaks differently. I probably now need to “recompile” rebar itself

josevalim

josevalim

Creator of Elixir

That’s another error! It can be addressed by running mix local.rebar.

silverdr

silverdr OP

Yes, TNX.

QuyenDoan

QuyenDoan

Hi! I also had the same issue. But cannot solve it using mix local.rebar :frowning: . Can someone help me? Or this is an issue of OTP erlang 25?

silverdr

silverdr OP

I guess if it was, then “rcompiling” with mix local.rebar wouldn’t help in my case but it did. So it is more probably your local setup that causes trouble. Maybe you could give a bit more info/context following the thread from the top

QuyenDoan

QuyenDoan

@silverdr . I did these steps:

  1. delete _build and deps folders
  2. add to mix.exs file this row
{:neotoma, "~> 1.7.3", manager: :rebar3, override: true},
  1. mix deps.get
  2. mix local.rebar (confirmed 2 times Yes to replace the existed rebar and rebar3 folders)
  3. mix phx.server

And my log as below.

dependency :neotoma is using Rebar 2, which is no longer maintained and no longer works in recent Erlang/OTP versions. Remove the :manager option or set it to :rebar3 instead
==> toml
Compiling 10 files (.ex)
Generated toml app
=ERROR REPORT==== 3-Jun-2022::22:33:15.955424 ===
beam/beam_load.c(148): Error loading module rebar:
please re-compile this module with an Erlang/OTP 25 compiler

escript: exception error: undefined function rebar:main/1
in function escript:run/2 (escript.erl, line 750)
in call from escript:start/1 (escript.erl, line 277)
in call from init:start_em/1
in call from init:do_boot/3
==> hypervine
** (Mix) Could not compile dependency :neotoma, “/Users/admin/.mix/rebar compile skip_deps=true deps_dir=”/Users/admin/hypervine-backend/_build/dev/lib"" command failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile neotoma”, update it with “mix deps.update neotoma” or clean it with “mix deps.clean neotoma”

silverdr

silverdr OP

I think you may need to add the neotoma line before the package that neotoma is a dependency of. Please check if that’s the case in your mix.exs

Where Next? Top

Trending in Questions Top

Blokh
Hey guys, I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly Do you guys have any suggestions what is the best prac...
New
RSP87
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
kszambelanczyk
Hello! Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app. I creat...
New
RemyXRenard
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
velrest
So my question is quite simple and i have found no conclusive answer on forum, google or AI. Should we use :erlang.float for Integer to ...
New
samoloth
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
FlyingNoodle
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews