Skip to content

Instantly share code, notes, and snippets.

@janpieper
Created July 30, 2013 08:35
Show Gist options
  • Save janpieper/6111282 to your computer and use it in GitHub Desktop.
Save janpieper/6111282 to your computer and use it in GitHub Desktop.
Elixir: {:noproc, {:gen_server, :call, [Mix.Server, :env, 30000]}}
$ elixir -v
Elixir 0.10.0
$ erl
Erlang R16B01 (erts-5.10.2) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.2 (abort with ^G)
1>
$ iex --sname a --cookie dummy -S mix
Erlang R16B01 (erts-5.10.2) [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]
** (exit) {:noproc, {:gen_server, :call, [Mix.Server, :env, 30000]}}
gen_server.erl:188: :gen_server.call/3
/home/jan/projects/elixir-lang/lib/mix/lib/mix/project.ex:304: Mix.Project.get_project_config/1
/home/jan/projects/elixir-lang/lib/mix/lib/mix/project.ex:53: Mix.Project.push/1
src/elixir_module.erl:341: :elixir_module."-eval_callbacks/5-fun-0-"/4
src/elixir_module.erl:340: :elixir_module."-eval_callbacks/5-fun-1-"/6
lists.erl:1323: :lists.foreach/2
src/elixir_module.erl:251: :elixir_module."-load_form/3-fun-0-"/4
src/elixir_module.erl:92: :elixir_module.compile/5
defmodule Idun.Mixfile do
use Mix.Project
def project do
[ app: :idun,
version: "0.0.1",
deps: deps ]
end
# Configuration for the OTP application
def application do
[ registered: [ :idun ],
mod: { Idun, [ 1, 9, 4, 8 ] } ]
end
# Returns the list of dependencies in the format:
# { :foobar, "0.1", git: "https://github.com/elixir-lang/foobar.git" }
defp deps do
[]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment