Interesting. I’m still having trouble getting the dependency’s supervisor to start. Here is my application.ex.
defmodule PlugTest.Mixfile do
use Mix.Project
def project do
[
app: :plug_test,
version: "0.0.1",
elixir: "~> 1.5",
elixirc_paths: elixirc_paths(Mix.env),
compilers: [:phoenix, :gettext] ++ Mix.compilers,
start_permanent: Mix.env == :prod,
deps: deps()
]
end
# Configuration for the OTP application.
#
# Type `mix help compile.app` for more information.
def application do
[
mod: {PlugTest.Application, []},
extra_applications: [:logger, :runtime_tools]
]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
# Specifies your project dependencies.
#
# Type `mix help deps` for examples and options.
defp deps do
[
# the supervised dependency
{:pluggy, path: "../pluggy"},
{:phoenix, "~> 1.3.0"},
{:phoenix_pubsub, "~> 1.0"},
{:phoenix_html, "~> 2.10"},
{:phoenix_live_reload, "~> 1.0", only: :dev},
{:gettext, "~> 0.11"},
{:cowboy, "~> 1.0"},
]
end
end
And I start it with { :ok, registry } = Supervisor.start_child(<SUPERVISOR NAME>, [])
.
Finally, the compilation error I’m getting:
== Compilation error in file lib/plug_test_web/endpoint.ex == ** (exit) exited in: GenServer.call(Pluggy.RegistrySupervisor, {:start_child, []}, :infinity)
.
Any thoughts?