Skip to content

Commit 4fc5a54

Browse files
authored
Merge pull request #168 from tompave/extra_applications_fixes
Extra applications fixes
2 parents 871a3bf + 7e933cd commit 4fc5a54

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

mix.exs

+13-2
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)