rustyio / sync

On-the-fly recompiling and reloading in Erlang. Code without friction.
MIT License
749 stars 163 forks source link

Issue 76: Make sync work in rebar3 environment #77

Closed vasu-dasari closed 7 years ago

vasu-dasari commented 7 years ago

Details of the bug are presented under issue 76.

Before fix:

sync_utils:get_options_from_module(cow_http).
{ok,[{i,"/Users/vdasari/Developer/erlang-gobgp/_build/default/lib/cowlib/src"},
     {type,erl},
     {outdir,"/Users/vdasari/Developer/erlang-gobgp/_build/default/lib/cowlib/ebin"},
     debug_info]}

After fix:

4> sync_utils:get_options_from_module(cow_http).
{ok,[{type,erl},
     {outdir,"/Users/vdasari/Developer/erlang-gobgp/_build/default/lib/cowlib/ebin"},
     debug_info,
     {i,"/Users/vdasari/Developer/erlang-gobgp/_build/default/lib/cowlib"},
     {i,"/Users/vdasari/Developer/erlang-gobgp/_build/default/lib/cowlib/include"},
     {i,"/Users/vdasari/Developer/erlang-gobgp/_build/default/lib/cowlib/src"}]}

And I could compile the file as well.

00:34:12.278 [info] /Users/vdasari/Developer/erlang-gobgp/_build/default/lib/cowlib/src/cow_http.erl:0: Recompiled.
00:34:12.446 [info] cow_http: Reloaded! (Beam changed.)