Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add code paths from Rebar when syntax checking

  • Loading branch information...
commit 626d04693c4e44d1f8308c60a8ebc71290c475e4 1 parent 36507aa
@jimenezrick jimenezrick authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  compiler/erlang_check.erl
View
2  compiler/erlang_check.erl
@@ -14,6 +14,8 @@ main([File]) ->
{d, 'TEST'}, {d, 'DEBUG'}],
case file:consult("rebar.config") of
{ok, Terms} ->
+ RebarDeps = proplists:get_value(deps_dir, Terms, "deps"),
+ code:add_paths(filelib:wildcard(RebarDeps ++ "/*/ebin")),
RebarOpts = proplists:get_value(erl_opts, Terms, []),
compile:file(File, Defs ++ RebarOpts);
_ ->
Please sign in to comment.
Something went wrong with that request. Please try again.