Following the tutorial, I've generated a fresh new phoenix v1.7.11 with Ecspanse v0.8.1 on elixir v1.14.0 and with Erlang/OTP v24, and was surprised to get an error right after plugging the Ecspanse
app in the application module:
** (Mix) Could not start application ecs: Ecs.Application.start(:normal, []) returned an error: shutdown: failed to start child: Ecs
** (EXIT) an exception was raised:
** (ArgumentError) errors were found at the given arguments:
* 2nd argument: invalid options
(stdlib 3.17.2.4) :ets.new(:ets_ecspanse_components_state, [:set, :public, :named_table, {:read_concurrency, true}, {:write_concurrency, :auto}])
(ecspanse 0.8.1) lib/ecspanse/server.ex:134: Ecspanse.Server.init/1
(stdlib 3.17.2.4) gen_server.erl:423: :gen_server.init_it/2
(stdlib 3.17.2.4) gen_server.erl:390: :gen_server.init_it/6
(stdlib 3.17.2.4) proc_lib.erl:226: :proc_lib.init_p_do_apply/3
:ets.new(Util.components_state_ets_table(), [
:set,
:public,
:named_table,
read_concurrency: true,
write_concurrency: :auto
])
I'm going to restart using a later Elixir and Erlang/OTP v26, but I thought you might want to know in case you'd like backwards compatibility or something.