-
Notifications
You must be signed in to change notification settings - Fork 13
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
The spec follows a spec with different name/arity #99
Comments
This error also happens in gradient codebase itself, the following spec in line @spec context_mapper_map(forms(), tokens(), options()) :: forms()
def context_mapper_map(forms, tokens, opts, mapper \\ &mapper/3) lib/gradient/ast_specifier.ex:64: The spec context_mapper_map/3 doesn't match the function name/arity This error is because of the optional argument. Once a typespec for it is added, it stops complaining: @type mapper_fn() :: (term(), term(), term()-> term())
@spec context_mapper_map(forms(), tokens(), options(), mapper_fn()) :: forms() I think it would help a lot in this case to show the spec and surrounding code, like I've seen in some other errors. |
What optional argument are you referring to? IN the example I shared I didn't have any so I want to make sure I understood 😄 |
Hey peeps, any update on this one? I wish I could contribute, but I am not qualified today. Almost everything failing today is due to this one. |
@yordis No progress on the fix yet. Alas, we have very limited bandwidth :/ However, you can mute this warning by using |
With the following SHA
It still is not working. Same issues as before |
@yordis thanks, I'm reopening then. |
Original issue: josefs/Gradualizer#421 (comment)
I am getting the following issues:
Here is the code where it is happening:
I am using the following package to expand the macros: https://github.com/straw-hat-team/beam-monorepo/tree/master/apps/one_piece_commanded/lib/one_piece/commanded
It seems that all the methods added by the macro are not working or something, but I added the typespec correctly (as far as I can tell, my apologies if was something obvious)
The text was updated successfully, but these errors were encountered: