'Crash on rebar3_auto

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.



Solution 1:[1]

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

code:ensure_loaded('rebar3_auto').

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1