Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test/cover_test_module.beam to rebar.config's clean files #47

Closed
norton opened this issue Oct 22, 2011 · 8 comments
Closed

Add test/cover_test_module.beam to rebar.config's clean files #47

norton opened this issue Oct 22, 2011 · 8 comments

Comments

@norton
Copy link
Contributor

norton commented Oct 22, 2011

Running eunit and then dialyzer triggers the following error below.

Can you consider adding this file to rebar.config's clean files?

{clean_files, ["test/cover_test_module.beam"]}.

==> src (compile)
dialyzing w/spec: ...
dialyzer --plt /Users/norton/.dialyzer_plt.R14B04 -Wunmatched_returns -r ./lib | fgrep -v -f dialyze-ignore-warnings.txt
Checking whether the PLT /Users/norton/.dialyzer_plt.R14B04 is up-to-date... yes
Compiling some key modules to native code... done in 0m47.91s
Proceeding with analysis...
dialyzer: Analysis failed with error: Could not scan the following file(s): [{"src/lib/meck/test/cover_test_module.beam",
" Could not get abstract code for: src/lib/meck/test/cover_test_module.beam\n Recompile with +debug_info or analyze starting from source code"}]
Last messages in the log cache:
Reading files and computing callgraph...

@eproxus
Copy link
Owner

eproxus commented Oct 23, 2011

Is the cleaning done automatically before running Dialyzer?

If not, I think the best solution is to delete the beam file in the cleanup after the test case that needs it.

@norton
Copy link
Contributor Author

norton commented Oct 25, 2011

Yes, rebar clean is called before running dialyzer.

I haven't checked the details but I think one of meck's eunit tests is generating this beam file (as a test input?).

@eproxus
Copy link
Owner

eproxus commented Nov 2, 2011

Yes, it's a file that's compile manually by the test code (because it needs to be compiled with different parameters for different tests).

I'll look at this when I have time. If you have a patch, I'll gladly accept it.

@eproxus
Copy link
Owner

eproxus commented Nov 4, 2011

Hmm, I don't seem to have a Dialyzer command in rebar anymore. How do you run Dialyzer?

@norton
Copy link
Contributor Author

norton commented Nov 5, 2011

I use a makefile for this purpose

https://github.com/norton/manifests/blob/master/rebar.mk

@eproxus
Copy link
Owner

eproxus commented Nov 7, 2011

So, can you either clean from that makefile or patch the tests to remove the modules when done? That'd be greatly appreciated!

@norton
Copy link
Contributor Author

norton commented Nov 13, 2011

I submitted a pull request for this issue.

#50

@eproxus
Copy link
Owner

eproxus commented Dec 5, 2011

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants