Skip to content

Instantly share code, notes, and snippets.

View lpgauth's full-sized avatar
😄
busy building cool stuff

Louis-Philippe Gauthier lpgauth

😄
busy building cool stuff
View GitHub Profile
@lpgauth
lpgauth / gist:8dce1737056c89737410
Created November 5, 2015 17:00
DEBUG=1 ./rebar3 do eunit -cv, cover -v
===> cover compiling "/Users/lpgauth/Git/rtb-gateway/_build/test/lib/rtb_gateway/ebin"
===> Cover compilation for directory "/Users/lpgauth/Git/rtb-gateway/_build/test/lib/rtb_gateway/ebin" failed: function_clause
===> cover compiling "/Users/lpgauth/Git/rtb-gateway/_build/test/lib/rtb_gateway/test"
=ERROR REPORT==== 5-Nov-2015::11:58:46 ===
Error in process <0.979.0> with exit value:
{function_clause,[{cover,find_main_filename,
[[]],
[{file,"cover.erl"},{line,1612}]},
{cover,transform,2,[{file,"cover.erl"},{line,1605}]},
@lpgauth
lpgauth / gist:bc51ff659d74d8f529bd
Created October 28, 2015 19:02
rebar3 erlydtl
15:00 $ ls -l /Users/lpgauth/Git/my_project/_build/default/lib/erlydtl/ebin | grep erlydtl_runtime.beam
-rw-r--r-- 1 lpgauth wheel 13912 28 Oct 14:42 erlydtl_runtime.beam
15:00 $ ls -l /Users/lpgauth/Git/my_project/_build/default/plugins/erlydtl/ebin | grep erlydtl_runtime.beam
-rw-r--r-- 1 lpgauth wheel 19840 28 Oct 14:40 erlydtl_runtime.beam
@lpgauth
lpgauth / gist:a6c29001929aabcac520
Created October 28, 2015 18:51
adgear_ssl_dtl:render([]).
** exception error: undefined function erlydtl_runtime:init_translation/1
in function adgear_ssl_dtl:render_internal/2 (, line 515)
in call from adgear_ssl_dtl:render/2 (, line 500)
@lpgauth
lpgauth / gist:f52d5940ed6ad04b30d7
Created October 28, 2015 18:29
DEBUG=1 ./rebar3 do eunit -cv, cover -v
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace
===> Uncaught error: {function_clause,
[{cover,find_main_filename,
[[]],
[{file,"cover.erl"},{line,1612}]},
{cover,transform,2,
[{file,"cover.erl"},{line,1605}]},
{cover,do_compile_beam1,3,
[{file,"cover.erl"},{line,1540}]},
{cover,do_compile_beam,3,
{erlydtl_opts, [
{compiler_options, [debug_info]},
{doc_root, "priv/templates"}
]}.
{plugins, [
{rebar3_erlydtl_plugin, ".*",
{git, "https://github.com/tsloughter/rebar3_erlydtl_plugin.git", {branch, master}}}
]}.
@lpgauth
lpgauth / gist:ca00fe6b128a8026b489
Created October 19, 2015 12:35
strace beam erts-7.1
strace -f -p 23952
Process 23952 attached with 47 threads
[pid 24000] futex(0x7fab5ba40c50, FUTEX_WAIT_PRIVATE, 4294967295, NULL <unfinished ...>
[pid 23999] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 23998] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 23997] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 23996] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 23995] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 23994] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
[pid 23993] restart_syscall(<... resuming interrupted call ...> <unfinished ...>
%% 1> c(snake).
%% {ok,snake}
%% 2> snake:run().
-module(snake).
-export([
run/0
]).
-module(test).
-export([
macro/0
]).
-ifdef(TEST).
-define(IF_DEF_TEST, fun (A, _) -> A end).
-else.
-define(IF_DEF_TEST, fun (_, B) -> B end).
===> Compiling anchor
===> erl_opts [debug_info,debug_info,warnings_as_errors,
{d,'TEST'},
{extra_src_dirs,["test"]}]
===> Files to compile first: []
===> "/Users/lpgauth/Git/anchor/_build/test/lib/anchor/src/anchor_utils.erl" [{outdir,
"/Users/lpgauth/Git/anchor/_build/test/lib/anchor/ebin"},
debug_info,
debug_info,
warnings_as_errors,
eunit:
@echo "Running rebar3 eunit..."
@rm -rf _build/test/lib
@$(REBAR) eunit