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
defmodule Memcachedx.Packet.Parser do | |
@doc """ | |
Parses the response to find the status code and return a friendly message | |
based on it. | |
""" | |
# Those seem to be unused | |
#alias Memcachedx.Packet.Response.Header, as: Header | |
#alias Memcachedx.Packet.Response.Body, as: Body |
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
** (Protocol.UndefinedError) protocol String.Chars not implemented for {:<>, [context: Wyvern.SuperSmartEngine, import: Kernel, line: 1], ["", "\n <style id=\"playLayoutStyle\"></style>\n"]} | |
(elixir) lib/string/chars.ex:3: String.Chars.impl_for!/1 | |
(elixir) lib/string/chars.ex:17: String.Chars.to_string/1 | |
(stdlib) erl_eval.erl:657: :erl_eval.do_apply/6 | |
(stdlib) eval_bits.erl:80: :eval_bits.eval_field/3 | |
(stdlib) eval_bits.erl:64: :eval_bits.expr_grp/4 | |
(stdlib) erl_eval.erl:477: :erl_eval.expr/5 | |
(stdlib) eval_bits.erl:80: :eval_bits.eval_field/3 | |
(stdlib) eval_bits.erl:64: :eval_bits.expr_grp/4 |
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
λ mix test | |
.......... | |
1) test simple layering (WyvernTest.Layers) | |
** (ArgumentError) argument error | |
stacktrace: | |
(stdlib) :unicode.characters_to_binary([content: "3", model: []]) | |
(elixir) lib/string.ex:1261: String.from_char_data!/1 | |
(stdlib) erl_eval.erl:657: :erl_eval.do_apply/6 | |
(stdlib) eval_bits.erl:80: :eval_bits.eval_field/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
1) test simple layering (WyvernTest.Layers) | |
** (ArgumentError) argument error | |
stacktrace: | |
(stdlib) :unicode.characters_to_binary([content: "3", model: []]) | |
(elixir) lib/string.ex:1261: String.from_char_data!/1 | |
(stdlib) erl_eval.erl:657: :erl_eval.do_apply/6 | |
(stdlib) eval_bits.erl:80: :eval_bits.eval_field/3 | |
(stdlib) eval_bits.erl:64: :eval_bits.expr_grp/4 | |
(stdlib) erl_eval.erl:477: :erl_eval.expr/5 | |
(elixir) src/elixir.erl:157: :elixir.erl_eval/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
-module(erl). | |
-export([start/0]). | |
-define(Dict, 'Elixir.Dict'). | |
-define(HashDict, 'Elixir.HashDict'). | |
start() -> | |
D = ?HashDict:new(), | |
D2 = ?Dict:put(D, hello, world), |
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() | |
spawn(fn -> | |
try do | |
<do something nasty> | |
rescue | |
e -> send(parent, {:exception, e}) | |
end | |
end) | |
receive do |
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 master | |
elixir v0.13.1 | |
λ ../ex_doc/bin/ex_doc "PhoEnix" "134" _build/dev/lib/timex/ebin -m Timex -u "https://github.com/GITHUB_USER/GITHUB_REPO" | |
** (ExDoc.Retriever.Error) module Timex.Date.Convert.Timex.DateTime is not defined/available | |
lib/ex_doc/retriever.ex:54: ExDoc.Retriever.get_module/2 | |
(elixir) lib/enum.ex:962: Enum."-map/2-lc$^0/1-0-"/2 | |
lib/ex_doc/retriever.ex:38: ExDoc.Retriever.docs_from_modules/2 | |
lib/ex_doc.ex:17: ExDoc.generate_docs/3 | |
(elixir) src/elixir_lexical.erl:17: :elixir_lexical.run/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
** (FunctionClauseError) no function clause matching in :lists.prefix/2 | |
(stdlib) lists.erl:190: :lists.prefix("/Users/alco/Documents/git/ubuntu-erlang-elixir/elixir-v0.13.1/elixir/bin/../lib", '/Users/alco/Documents/git/ubuntu-erlang-elixir/elixir-v0.13.1/elixir/bin/../lib/elixir/ebin/Elixir.String.beam') | |
lib/ex_doc/html_formatter/autolink.ex:116: ExDoc.HTMLFormatter.Autolink.get_source/2 | |
lib/ex_doc/html_formatter/autolink.ex:88: anonymous fn/4 in ExDoc.HTMLFormatter.Autolink.typespec/3 | |
(elixir) lib/enum.ex:1819: anonymous fn/4 in Enum.map_join/3 | |
(elixir) lib/enum.ex:1241: Enum."-reduce/3-lists^foldl/2-0-"/3 | |
(elixir) lib/macro.ex:331: Macro.to_string/2 | |
(elixir) lib/macro.ex:380: Macro.to_string/2 | |
lib/ex_doc/retriever.ex:7: ExDoc.TypeNode.update_spec/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
defmodule Fib do | |
def fib(0), do: 0 | |
def fib(1), do: 1 | |
def fib(n), do: fib(n-1) + fib(n-2) | |
end | |
IO.puts Fib.fib(20) |
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
λ mix run example/example_alternative.exs | |
Compiled lib/uweb/router.ex | |
Generated uweb.app | |
** (FunctionClauseError) no function clause matching in MicroWeb.Router.mount/2 | |
(uweb) /Users/alco/home/projects/uweb/example/example_alternative.exs:8: MicroWeb.Router.mount/2 | |
/Users/alco/home/projects/uweb/example/example_alternative.exs:8: Router (module) |