File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,21 @@ defmodule FunWithFlags.Mixfile do
3939 # adapter is configured.
4040 #
4141 defp local_extra_applications do
42+ # Required to run the Erlang observer with Elixir 1.15 and above.
43+ # https://elixirforum.com/t/cannot-start-observer-undefinedfunctionerror-function-observer-start-0-is-undefined/56642
44+ # https://github.com/elixir-lang/elixir/blob/v1.15/CHANGELOG.md#potential-incompatibilities
45+ apps =
46+ if Version . match? ( System . version , ">= 1.15.0" ) do
47+ [ :logger , :observer , :wx , :runtime_tools ]
48+ else
49+ [ :logger ]
50+ end
51+
4252 apps =
4353 if System . get_env ( "PERSISTENCE" ) == "ecto" do
44- [ :logger , :ecto , :ecto_sql , :postgrex ]
54+ apps ++ [ :ecto , :ecto_sql , :postgrex ]
4555 else
46- [ :logger , :redix ]
56+ apps
4757 end
4858
4959 apps =
@@ -53,6 +63,7 @@ defmodule FunWithFlags.Mixfile do
5363 apps
5464 end
5565
66+ # IO.puts("Alocal_extra_applicationsPPS: #{inspect(apps)}")
5667 apps
5768 end
5869
You can’t perform that action at this time.
0 commit comments