rustyio / sync

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

{error,{"no such file or directory","sync.app"}} #80

Open herdigiorgi opened 6 years ago

herdigiorgi commented 6 years ago

What am I doing wrong?

$ echo $ERL_LIBS
/home/hernanex3/.ERL_LIBS/
$ pwd
/home/hernanex3/.ERL_LIBS
$ git clone git@github.com:rustyio/sync.git
Cloning into 'sync'...
remote: Counting objects: 708, done.
remote: Total 708 (delta 0), reused 0 (delta 0), pack-reused 708
Receiving objects: 100% (708/708), 288.56 KiB | 552.00 KiB/s, done.
Resolving deltas: 100% (441/441), done.
$ cd sync/
$ make
./rebar compile
==> sync (compile)
Compiled src/sync.erl
Compiled src/sync_options.erl
Compiled src/sync_notify.erl
src/sync_utils.erl:16: Warning: export_all flag enabled - all functions will be exported
Makefile:2: recipe for target 'compile' failed
make: *** [compile] Error 1
$ erl
Erlang/OTP 20 [erts-9.0.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]

Eshell V9.0.4  (abort with ^G)
1> sync:start().
{error,{"no such file or directory","sync.app"}}
choptastic commented 6 years ago

Hi, I just pushed an update. Give this a shot and let me know: https://github.com/rustyio/sync/commit/44a1e0d0c3eab0544010bc973ee46b1f6d602ccf

herdigiorgi commented 6 years ago

@choptastic yehaa that solved the {error,{"no such file or directory","sync.app"}} problem. But now when:

rebar3 shell                                                                                                                                           130
===> Verifying dependencies...
===> Compiling uf
Erlang/OTP 20 [erts-9.0.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:0] [kernel-poll:false]

Eshell V9.0.4  (abort with ^G)
1> sync:go().
=INFO REPORT==== 4-Mar-2018::12:46:52 ===
/home/hernanex3/lib/rebar3/_build/default/lib/cf/src/cf.erl:0: Recompiled.

=INFO REPORT==== 4-Mar-2018::12:46:52 ===
/home/hernanex3/lib/rebar3/_build/default/lib/cf/src/cf_term.erl:0: Recompiled.

=INFO REPORT==== 4-Mar-2018::12:46:52 ===
/home/hernanex3/lib/rebar3/_build/default/lib/erlware_commons/src/ec_assoc_list.erl:0: Recompiled.

=INFO REPORT==== 4-Mar-2018::12:46:53 ===
/home/hernanex3/lib/rebar3/_build/default/lib/erlware_commons/src/ec_cmd_log.erl:0: Recompiled.

=INFO REPORT==== 4-Mar-2018::12:46:53 ===
/home/hernanex3/lib/rebar3/_build/default/lib/erlware_commons/src/ec_cnv.erl:0: Recompiled.

% ... infinite list of INFO, AND error messages

And can't detect any of my files' changes. Maybe it can't work with rebar3?