This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
** (CaseClauseError) no case clause matching: {#PID<0.2.0>, 'ok'} | |
lib/elixir/lib/kernel/parallel_compiler.ex:53: Kernel.ParallelCompiler.spawn_compilers/3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app b/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app | |
index 3c4ab7c..499e023 100644 | |
--- a/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app | |
+++ b/lib/mix/test/fixtures/rebar_dep/apps/rebar_dep/ebin/rebar_dep.app | |
@@ -1 +1 @@ | |
-{application,rebar_dep,[{registered,[]},{vsn,"0.1.0"},{modules,[rebar_dep]}]}. | |
+{application,rebar_dep,[{vsn,"0.1.0"},{modules,[rebar_dep]}]}. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/Users/tonini/.mix/rebar --version | |
rebar 2.1.0-pre R16B 20130708_152514 git 2.1.0-pre-140-g620c4b0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: snippet -*- | |
# name: it | |
# key: it | |
# -- | |
it("$1", function() { | |
$0 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: snippet -*- | |
# name: describe | |
# key: describe | |
# -- | |
describe("$1", function() { | |
$0 | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13:24:52.420 [error] Error in process <0.55.0> with exit value: {#{'__exception__'=>true,'__struct__'=>'Elixir.RuntimeError',message=><<4 bytes>>},[{erlang,apply,2,[]}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Style 1 | |
defmodule Math do | |
def double_each([]), do: [] | |
def double_each([head|tail]) do | |
[head * 2 | double_each(tail)] | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
parent = self() | |
# Spawns an Elixir process (not an operating system one!) | |
spawn_link(fn -> | |
send parent, {:msg, "hello world"} | |
end) | |
# Block until the message is received | |
receive do | |
{:msg, contents} -> IO.puts contents |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ../ex_doc/bin/ex_doc | |
Too few arguments. | |
Usage: | |
ex_doc PROJECT VERSION BEAMS [OPTIONS] | |
Examples: | |
ex_doc "Dynamo" "0.8.0" "_build/shared/lib/dynamo/ebin" -u "https://github.com/elixir-lang/dynamo" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def run(args, generator \\ &ExDoc.generate_docs/3) do | |
{opts, args, _} = OptionParser.parse(args, | |
aliases: [o: :output, f: :formatter, u: :source_url, r: :source_root, | |
m: :main, p: :homepage_url, c: :config]) | |
[project, version, source_beam] = parse_args(args) | |
Code.prepend_path(source_beam) | |
opts = | |
opts |