Permalink
Browse files

Add code paths from Rebar when syntax checking

  • Loading branch information...
jimenezrick committed Feb 3, 2012
1 parent 36507aa commit 626d04693c4e44d1f8308c60a8ebc71290c475e4
Showing with 2 additions and 0 deletions.
  1. +2 −0 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);
_ ->

0 comments on commit 626d046

Please sign in to comment.