I upgraded 3.15.2 to 3.16.0 but now I am not able to compile (yes i did clean and re-get deps)
fedi@kittyvm:/srv/fedi/akkoma$ mix compile
===> Analyzing applications...
===> Compiling syslog
===> Uncaught error in rebar_core. Run with DIAGNOSTIC=1 to see stacktrace or consult rebar3.crashdump
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
** (Mix) Could not compile dependency :syslog, "/home/fedi/.mix/elixir/1-17/rebar3 bare compile --paths /srv/fedi/akkoma/_build/prod/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile syslog --force", update it with "mix deps.update syslog" or clean it with "mix deps.clean syslog"
There are no breaking changes when oving up a minor elixir (and Akkoma is tested with both an older and newer version of elixir).
Given it fails with an internal rebar3 error it seems like your rebar3 binary was compiled against OTP26 and broke when you moved to OTP27 without recompiling rebar3.
When you upgrade OTP, recompile all erlang stuff (like rebar3), elixir itself and best all elixir stuff too. Usually your distro will take care of this for you.
If you want to make sure, you can try the diagnostic settings and commands proposed in the error output you posted
I don’t understand. The ASDF install has its own rebar3 path for each version so there shouldn’t be a conflict, yet it still doesn’t work. I deleted ~/.mix and ~/.hex. I did mix deps.clean –all and mix deps.get.
==> pleroma
===> Analyzing applications...
===> Compiling unicode_util_compat
===> Analyzing applications...
===> Compiling idna
===> Fetching pc v1.14.0
===> Analyzing applications...
===> Compiling pc
===> Compiling _build/default/plugins/pc/src/pc_port_env.erl failed
┌─ _build/default/plugins/pc/src/pc_port_env.erl:
│
190 │ case code:lib_dir(erl_interface, Subdir) of
│ ╰── code:lib_dir/2 is deprecated; this functionality will be removed in a future release
===> Errors loading plugin pc. Run rebar3 with DEBUG=1 set to see errors.
===> Analyzing applications...
===> Compiling pc
===> Analyzing applications...
===> Compiling syslog
===> Compiling _build/default/plugins/pc/src/pc_port_env.erl failed
┌─ _build/default/plugins/pc/src/pc_port_env.erl:
│
190 │ case code:lib_dir(erl_interface, Subdir) of
│ ╰── code:lib_dir/2 is deprecated; this functionality will be removed in a future release
** (Mix) Could not compile dependency :syslog, "/home/fedi/.asdf/installs/elixir/1.18.4-otp-27/.mix/elixir/1-18-otp-27/rebar3 bare compile --paths /srv/fedi/akkoma/_build/prod/lib/*/ebin" command failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile syslog --force", update it with "mix deps.update syslog" or clean it with "mix deps.clean syslog"
I wonder why I see it using /home/fedi/.asdf/installs/elixir/1.18.4-otp-27/.mix/elixir/1-18-otp-27/rebar3 in the error when it’s using /home/fedi/.cache/rebar3