Header files not copied from source

Adam Lindberg eproxus at gmail.com
Fri Jun 10 08:16:01 EDT 2011


The reason for PropEr not finding the beam file:

cover_compiled = code:which(meck)

Cheers,
Adam


On Friday, June 10, 2011 at 13:09, Adam Lindberg wrote:

> I tried doing that, but it unfortunately didn't make a difference. To be more specific:
> 
> src/meck.erl:
> -include("meck_abstract.hrl").
> 
> src/meck_abstract.hrl
> 
> 
> That works when compiling and running the tests, because rebar either figures that out or compiles from the source directory. When using PropEr, the tool tries to recompile the module (because it doesn't find the beam file for some reason, so I should really figure out why).
> 
> Somehow PropEr finds .eunit/meck.erl (is this path compiled into the beam file perhaps?) but can't compile it because meck_abstract.hrl is not inside .eunit.
> 
> Cheers,
> Adam
> 
> 
> On Friday, June 10, 2011 at 13:02, David Smith wrote:
> 
> > Is there any reason not have just add a:
> > 
> > {erl_opts, [{i, "src"}]}
> > 
> > to your rebar.config?
> > 
> > D.
> > 
> > On Fri, Jun 10, 2011 at 6:00 AM, Adam Lindberg <eproxus at gmail.com (mailto:eproxus at gmail.com)> wrote:
> > > Hi,
> > > 
> > > In my application (meck, https://github.com/eproxus/meck) I have a header file in the src folder, used for internal includes that are shared by the modules in the application (the idea is that include/ should only contain API header files).
> > > 
> > > When running EUnit tests, rebar copies all source files to the .eunit folder but it skips the header files that exist in src. Tools that depend on getting the source (and compiling it) fails because the necessary header files are not in the same folder (PropEr is one of those tools).
> > > 
> > > Would it be possible to add copying of the header files in the src folder into the .eunit folder as well?
> > > 
> > > Cheers,
> > > Adam
> > > 
> > > 
> > > 
> > > _______________________________________________
> > > rebar mailing list
> > > rebar at lists.basho.com (mailto:rebar at lists.basho.com)
> > > http://lists.basho.com/mailman/listinfo/rebar_lists.basho.com
> > 
> > 
> > 
> > -- 
> > Dave Smith
> > Director, Engineering
> > Basho Technologies, Inc.
> > dizzyd at basho.com (mailto:dizzyd at basho.com)





More information about the rebar mailing list