[erlang-questions] Trouble with abstract code, cover and rebar3

Vlad Dumitrescu vladdu55@REDACTED
Mon Jul 24 20:42:26 CEST 2017


Hi!

I have a project that gives me headache: on one machine, running "rebar3
test" results in an error like below. Same code on another machine compiles
fine, but as far as I can tell the machines should be configured the same
way. Obviously, they aren't. Anyone has a suggestion how to find what is
going on? The code is compiled with OTP 17, so it shouldn't be related to
the recent beam chunk changes in v20...

best regards,
Vlad

===> erlopts [debug_info,
                         {d,'EUNIT'},
                         nowarn_missing_spec,warn_deprecated_function,

 warn_export_all,warn_export_vars,warn_obsolete_guard,
                         warn_shadow_vars,warn_unused_function,
                         warn_unused_import,warn_unused_record,
                         warn_unused_vars,warnings_as_errors,
                         {d,'TEST'}]
===> files to compile
["/home/vlad/projects/erlide_kernel/common/_build/test/lib/erlide_tools/src/runtime_tools_sup.erl",
"/home/vlad/projects/erlide_kernel/common/_build/test/lib/erlide_tools/src/ttbe.erl",
....,
"/home/vlad/projects/erlide_kernel/common/_build/test/lib/erlide_tools/src/erlide_tools_app.erl"]
===>      Compiled runtime_tools_sup.erl
===>      Compiled ttbe.erl
===>      Compiled erlide_tools_app.erl
===> cover compiling
"/home/vlad/projects/erlide_kernel/common/_build/test/lib/erlide_tools/ebin"

=ERROR REPORT==== 24-Jul-2017::19:32:04 ===
Error in process <0.395.0> with exit value:
{{case_clause,{error,beam_lib,{invalid_chunk,"/home/vlad/projects/erlide_kernel/common/_build/test/lib/erlide_tools/ebin/ttbe.beam","Abst"}}},[{cover,do_compile_beam,3,[{file,"cover.erl"},{line,1355}]},{cover,main_process_loop...

===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or
consult rebar3.crashdump
===> Uncaught error: {case_clause,
                                 {'EXIT',
                                  {{case_clause,
                                    {error,beam_lib,
                                     {invalid_chunk,

"/home/vlad/projects/erlide_kernel/common/_build/test/lib/erlide_tools/ebin/ttbe.beam",
                                      "Abst"}}},
                                   [{cover,do_compile_beam,3,
                                     [{file,"cover.erl"},{line,1355}]},
                                    {cover,main_process_loop,1,
                                     [{file,"cover.erl"},{line,600}]}]}}}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170724/ac881336/attachment.htm>


More information about the erlang-questions mailing list