I am having a problem compiling a project:
16:42:59 goulash_control > mix compile
== Compilation error on file lib/goulash/control.ex ==
** (CompileError) lib/goulash/control.ex:1: cannot define module Goulash.Control because it is currently being defined
(stdlib) erl_eval.erl:569: :erl_eval.do_apply/6
(elixir) src/elixir.erl:140: :elixir.eval_forms/4
(elixir) src/elixir_lexical.erl:17: :elixir_lexical.run/2
16:43:04 goulash_control > mix -v
Elixir 0.12.5
The module's in question source is below:
defmodule Goulash.Control do
use Application.Behaviour
def start do
:application.start(:elixir)
:application.start(:goulash_control)
end
def start(_type, _args) do
:supervisor.start_link({:local, Goulash.ControlSup}, Goulash.ControlSup, [])
end
end
--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.