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

Fix error and -spec(_).s #134

Merged
merged 3 commits into from
Mar 12, 2020
Merged

Fix error and -spec(_).s #134

merged 3 commits into from
Mar 12, 2020

Conversation

paulo-ferraz-oliveira
Copy link
Contributor

The third commit (the one that took me the longest to understand, since the dialyzer message isn't all that clear), I had already referred to in #118 and #123, and it's finally fixed 😃

The two previous commits (regarding the module() change) had somehow not surfaced before (or I was otherwise using different dialyzer options locally).

I ran rebar3 dialyzer, with no issues, on top of:

  • OTP 18.3,
  • OTP 19.3,
  • OTP 20.3,
  • OTP 21.3, and
  • OTP 22.2

Issued under OTP 22.2
Issued under OTP 22.2
Issued under OTP 22.2

This is a "double" fix:
1. it seems to me that ?error (in this case) requires string as first arg.
2. F (from the arguments) was clashing with F from the ?error macro, which caused a
Guard test ... can never succeed dialyzer warning
@paulo-ferraz-oliveira
Copy link
Contributor Author

@talentdeficit: do you think this PR will eventually make its way into a release?

@tsloughter
Copy link
Collaborator

@paulo-ferraz-oliveira I'll take a look at this today.

@paulo-ferraz-oliveira
Copy link
Contributor Author

Thanks, @tsloughter. It's actually preventing proper dialyzer'ing of a consumer lib. since the dialyzer complains a given pattern can never succeed.

@tsloughter tsloughter merged commit 2c6ea41 into talentdeficit:develop Mar 12, 2020
@paulo-ferraz-oliveira
Copy link
Contributor Author

Thanks, @tsloughter. Will there be a release for this? I'd prefer to work with tags instead of develop.

@paulo-ferraz-oliveira paulo-ferraz-oliveira deleted the fix/for_dialyzer branch May 26, 2020 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants