Skip to content

Commit 8a6cadd

Browse files
committed
use r3:do(compile); fix CSrc
1 parent 7aaa267 commit 8a6cadd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/rebar3_auto.app.src

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{application,rebar3_auto,
22
[{description,"Rebar3 plugin for auto compiling on changes"},
3-
{vsn,"0.4.0"},
3+
{vsn,"0.5.1"},
44
{registered,[]},
55
{applications,[kernel,stdlib,fs]},
66
{env,[]},

src/rebar3_auto.erl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ auto(Extensions) ->
112112
% or we can flush after compile?
113113
timer:sleep(200),
114114
flush(),
115-
rebar_agent:do(compile)
115+
r3:do(compile)
116116
end;
117117
_ -> pass
118118
end
@@ -140,13 +140,13 @@ listen_on_project_apps(State) ->
140140
CSrcDir = filename:join(rebar_app_info:dir(AppInfo), "c_src"),
141141
case filelib:is_dir(SrcDir) of
142142
true ->
143-
fs:start_link(fs_watcher, SrcDir),
144-
fs:subscribe(fs_watcher);
143+
fs:start_link(fs_watcher_src, SrcDir),
144+
fs:subscribe(fs_watcher_src);
145145
false -> ignore
146146
end,
147147
case filelib:is_dir(CSrcDir) of
148148
true ->
149-
fs:start_link(fs_watcher_csrc, SrcDir),
149+
fs:start_link(fs_watcher_csrc, CSrcDir),
150150
fs:subscribe(fs_watcher_csrc);
151151
false -> ignore
152152
end

0 commit comments

Comments
 (0)