-
Notifications
You must be signed in to change notification settings - Fork 443
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
Don't run doctests for generated functions #1966
Conversation
Uffizzi Preview |
When trying this branch, it's no longer tripping on the doctests, but I'm running into a new To reproduce:
When evaluating this, the error I'm seeing is:
|
@petrus-jvrensburg thanks for checking, should be good now! |
Yes, that fixes it. Thanks a lot! |
f6e781f
to
02eefe8
Compare
02eefe8
to
2092852
Compare
[_ | _] = path -> List.starts_with?(path, :code.lib_dir()) | ||
_ -> false | ||
end | ||
app == :erts or |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@josevalim in iex
Application.get_application(:atomics)
#=> nil
in iex -S mix
Application.get_application(:atomics)
# => :erts
Given the test fails, I think this changed in elixir-lang/elixir#12642, but probably expected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perfect, thanks! I commented out the failing test and left a TODO, so we can marge the fix :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I will leave the check and have the TODO to remove it, this way we keep the test.
Functions defined with macros may have doctests, in particular
use Mod
may bring some, and we want to ignore these, since we can't point to them in the editor.This includes two checks, one of which requires latest elixir, I will bump CI on the next RC.