kernel: Fix code:get_doc/1,2 when cover_compiled#9433
Conversation
CT Test Results 3 files 392 suites 1h 14m 23s ⏱️ For more details on these failures, see this check. Results for commit 06adfb2. ♻️ This comment has been updated with latest results. To speed up review, make sure that you have read Contributing to Erlang/OTP and that all checks pass. See the TESTING and DEVELOPMENT HowTo guides for details about how to run test locally. Artifacts// Erlang/OTP Github Action Bot |
|
I think this fix should be in the |
bjorng
left a comment
There was a problem hiding this comment.
Thanks for your pull request.
Please add a test case to beam_doc_SUITE in the compiler application.
|
As a side point, I wonder if rebar3 should switch how it uses cover, to just compiling the code in the first place with the appropriate flags, rather than dynamically recompiling it - it's much faster and avoids issues like this - it was one of the reasons to add the new coverage system - it doesn't require dynamic recompilation. |
e167d95 to
8d3113e
Compare
Done. |
b78520f to
d51a975
Compare
|
I pushed a fixup commit that fixed a few issues. If you agree, please squash the commits.
|
4a5efd6 to
81c879a
Compare
Agree and squashed. Thank you for the fix and explanation! |
|
Added to our daily builds. |
|
I forgot to run Dialyzer before I pushed my suggestion for simpler implementation. It turns out that one clause will never match. I've pushed a new fixup commit. Please squash. |
7a39161 to
06adfb2
Compare
Done. |
|
Thanks for your pull request. |
This PR fixes a bug getting docs when a module is compiled by the cover module. Also, the
cover_compilederror was missing in the spec.To reproduce, first compile the module via
cover:compileand runcode:get_doc.Find this bug via the new
doctest, for example:The expected result is to fail, but the test passed:
After this PR the error is raised:
cc @garazdawi