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

Broken in Elixir 1.11 #2

Open
dantswain opened this issue May 4, 2021 · 0 comments
Open

Broken in Elixir 1.11 #2

dantswain opened this issue May 4, 2021 · 0 comments

Comments

@dantswain
Copy link

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.

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

1 participant