hexpm / hex

Package manager for the Erlang VM

Home Page:https://hex.pm

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fail to load function 'Elixir.Hex.Netrc.Cache':fetch/1: op make_fun2 u: on Erlang/OTP 27 rc.1

zacky1972 opened this issue · comments

Hi,

I tested Erlang/OTP 27 rc.1 as follows:

mix new test1
cd test1
(edit mix.exs to add some hex library)
mix deps.get

Then I got the following error:

03:56:18.961 [error] beam/beam_load.c(607): Error loading function 'Elixir.Hex.Netrc.Cache':fetch/1: op make_fun2 u:
  no specific operation found



03:56:18.965 [error] beam/beam_load.c(607): Error loading function 'Elixir.Hex.Netrc.Cache':fetch/1: op make_fun2 u:
  no specific operation found



03:56:18.968 [notice] Application hex exited: exited in: Hex.Application.start(:normal, [])
    ** (EXIT) an exception was raised:
        ** (ArgumentError) The module Hex.Netrc.Cache was given as a child to a supervisor but it does not exist
            (elixir 1.16.1) lib/supervisor.ex:797: Supervisor.init_child/1
            (elixir 1.16.1) lib/enum.ex:1700: Enum."-map/2-lists^map/1-1-"/2
            (elixir 1.16.1) lib/supervisor.ex:783: Supervisor.init/2
            (elixir 1.16.1) lib/supervisor.ex:707: Supervisor.start_link/2
            (kernel 9.3) application_master.erl:295: :application_master.start_it_old/4

03:56:18.970 [notice] Application inets exited: :stopped

03:56:18.971 [notice] Application ssl exited: :stopped

03:56:18.971 [notice] Application public_key exited: :stopped

03:56:18.971 [notice] Application asn1 exited: :stopped

03:56:18.971 [notice] Application crypto exited: :stopped
Could not start Hex. Try fetching a new version with "mix local.hex" or uninstalling it with "mix archive.uninstall hex.ez"
** (MatchError) no match of right hand side value: {:error, {:hex, {:bad_return, {{Hex.Application, :start, [:normal, []]}, {:EXIT, {%ArgumentError{message: "The module Hex.Netrc.Cache was given as a child to a supervisor but it does not exist"}, [{Supervisor, :init_child, 1, [file: ~c"lib/supervisor.ex", line: 797]}, {Enum, :"-map/2-lists^map/1-1-", 2, [file: ~c"lib/enum.ex", line: 1700]}, {Supervisor, :init, 2, [file: ~c"lib/supervisor.ex", line: 783]}, {Supervisor, :start_link, 2, [file: ~c"lib/supervisor.ex", line: 707]}, {:application_master, :start_it_old, 4, [file: ~c"application_master.erl", line: 295]}]}}}}}}
    (hex 2.0.6) lib/hex.ex:5: Hex.start/0
    (mix 1.16.1) lib/mix/hex.ex:60: Mix.Hex.start/0
    (mix 1.16.1) lib/mix/dep/loader.ex:189: Mix.Dep.Loader.with_scm_and_app/5
    (mix 1.16.1) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/4
    (elixir 1.16.1) lib/enum.ex:1700: Enum."-map/2-lists^map/1-1-"/2
    (mix 1.16.1) lib/mix/dep/loader.ex:364: Mix.Dep.Loader.mix_children/3
    (mix 1.16.1) lib/mix/dep/loader.ex:18: Mix.Dep.Loader.children/1
    (mix 1.16.1) lib/mix/dep/converger.ex:97: Mix.Dep.Converger.all/4

I also tested it after mix local.hex.

elixir -v shows:

Erlang/OTP 27 [RELEASE CANDIDATE 1] [erts-14.3] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] [jit]

Elixir 1.16.1 (compiled with Erlang/OTP 26)