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

Unmaintained neotoma uses rebar2 #170

Open
Sgoettschkes opened this issue Apr 11, 2022 · 9 comments
Open

Unmaintained neotoma uses rebar2 #170

Sgoettschkes opened this issue Apr 11, 2022 · 9 comments

Comments

@Sgoettschkes
Copy link

When using slime (in the context of the still static page generator), I get the following error message:

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

neotoma seems to be unmaintained with the last commit to master in 2016.

I guess the options to go forward would be:

  1. Fork neotoma and update it
  2. Replace neotoma with something else
@Sinc63
Copy link

Sinc63 commented Apr 13, 2022

I found a fork that may resolve this but don't have time to test it yet. Check https://github.com/xio/neotoma.

@cblavier
Copy link

You can also override neotoma dependency right from your mix file:

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

@silverdr
Copy link

@cblavier - this doesn't seem to work. At least with Erlang/OTP 25…

@latesh
Copy link

latesh commented May 23, 2022

@cblavier - this doesn't seem to work. At least with Erlang/OTP 25…

the following has worked for me as a quick fix:

{:neotoma, git: "https://github.com/xio/neotoma", override: true},
{:phoenix_slime, git: "https://github.com/Raphexion/phoenix_slime.git", branch: "master"}

@silverdr
Copy link

silverdr commented May 23, 2022

@cblavier - this doesn't seem to work. At least with Erlang/OTP 25…

the following has worked for me as a quick fix:

{:neotoma, git: "https://github.com/xio/neotoma", override: true},
{:phoenix_slime, git: "https://github.com/Raphexion/phoenix_slime.git", branch: "master"}

For OTP 24 the fix suggested by @cblavier was fine. For OTP 25 neither his nor the one from @latesh seems to work anymore as now Rebar is not "OTP 25 compiled". I get

=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

@silverdr
Copy link

OK, so the current "quick fix" for OTP 25 is:

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

followed by mix local.rebar, which deals with the above mentioned error.

@pepicrft
Copy link

The trick worked for me too, but I'm using it from a package that I'd like to publish in the Hex registry, and this prevents me from doing it. Newbie question, is it possible to configure Neotoma to be built using rebar3 so that it doesn't require upstream packages to do overrides?

@Sinc63
Copy link

Sinc63 commented Sep 1, 2022

The trick worked for me too, but I'm using it from a package that I'd like to publish in the Hex registry, and this prevents me from doing it. Newbie question, is it possible to configure Neotoma to be built using rebar3 so that it doesn't require upstream packages to do overrides?

I haven't done this sort of thing, but I would hope that if you set your mix file to use rebar3 as an override, that packages that include you as a dependency will inherit that override. You may have to create a temporary test package that imports your main package to see if it works. And let us know, either way.

@silverdr
Copy link

silverdr commented Aug 9, 2023

FYI - found forks working with PHX 1.7

https://github.com/populimited/slime
https://github.com/populimited/phoenix_slime

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

6 participants