1

When I use rebar3_auto, it works only at the compiling, when it is running, I change code in a file to make it load, but I get the error as the following:

{undef,[{rebar3_auto,auto,
                     [[<<".erl">>,<<".hrl">>,<<".src">>,<<".lfe">>,
                       <<".config">>,<<".lock">>,<<".c">>,<<".cpp">>,<<".h">>,
                       <<".hpp">>,<<".cc">>]],
                     []}]}

After that, changing any file does not effect the automatically compiling nor loading.

radrow
  • 6,419
  • 4
  • 26
  • 53
Yarin Nim
  • 73
  • 3

1 Answers1

0

undef means the the module rebar3_auto has not been loaded. Try to run:

code:ensure_loaded('rebar3_auto').
2240
  • 1,547
  • 2
  • 12
  • 30