Skip to content

Broken in Elixir 1.11 #2

Description

@dantswain

When starting the scheduler in Elixir 1.11 I get this:

** (Mix) Could not start application my_app: MyApp.TestApplication.start(:normal, []) returned an error: shutdown: failed to start child: MyApp.TestScheduler
    ** (EXIT) shutdown: failed to start child: Registry
        ** (EXIT) an exception was raised:
            ** (ArgumentError) expected :name to be an atom, got: {:via, Swarm, MyApp.TestScheduler.TaskRegistry}
                (elixir 1.11.0) lib/registry.ex:331: Registry.start_link/1
                (quantum 3.3.0) lib/quantum/task_registry.ex:15: Quantum.TaskRegistry.start_link/1
                (stdlib 3.13.2) supervisor.erl:385: :supervisor.do_start_child_i/3
                (stdlib 3.13.2) supervisor.erl:371: :supervisor.do_start_child/2
                (stdlib 3.13.2) supervisor.erl:355: anonymous fn/3 in :supervisor.start_children/2
                (stdlib 3.13.2) supervisor.erl:1171: :supervisor.children_map/4
                (stdlib 3.13.2) supervisor.erl:321: :supervisor.init_children/2
                (stdlib 3.13.2) gen_server.erl:417: :gen_server.init_it/2

It appears that starting registries with via has been removed: elixir-lang/elixir#8850

I'm not sure which version of Elixir this change first appeared in, I'm running 1.11.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions