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 upstream warnings under Elixir 1.16 #215

Merged
merged 3 commits into from Jan 28, 2024

Conversation

marcelotto
Copy link
Contributor

In preparation for Elixir 1.16, this pull request fixes missing empty parentheses warnings for function calls without arguments. This change is crucial in addressing a new behavior in Elixir, as detailed in Elixir issue #13091. Previously, omitting parentheses in such function calls in ExVCR would generate warnings only when compiling ExVCR itself. However, with Elixir 1.16, these warnings have become upstream warnings. This means they now also appear when compiling code that uses ExVCR, especially in modules that use ExVCR.Mock. So, this affects essentially all ExVCR users and is particularly problematic for those employing the --warnings-as-errors flag in their CI environments, which is quite common.

While I was at it, I removed all such warnings (i.e. also outside of macros).

@mtrudel
Copy link

mtrudel commented Dec 14, 2023

This is hitting us as well, and the blocking error here looks trivial (the PR contains an extra set of double params in one location). Any chance I can entice y'all to get this over the line?

@parroty parroty merged commit 971d7c8 into parroty:master Jan 28, 2024
@parroty
Copy link
Owner

parroty commented Jan 28, 2024

I'm very sorry being late to take action. Thank you for the PR 🙇.

@marcelotto marcelotto deleted the fix/missing-parentheses-warnings branch February 7, 2024 17:27
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.

None yet

3 participants