You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Elixir 1.16.0-rc.0 (792d4cc) (compiled with Erlang/OTP 26)
Operating system
MacOS Sonoma 14.1
Current behavior
After upgrading to Elixir v1.16.0-rc.0, I started receiving a warning when using a macro from the ExVCR test dependency. This was not the case with the previous Elixir version (1.15.4) and the warning is raised from the expanded code of the dependency, which is not directly under my control.
When running the tests, the following warning is emitted:
warning: parentheses are required for function calls with no arguments, got: ExVCR.Adapter.Hackney.module_name
│
3 │ use ExVCR.Mock, adapter: ExVCR.Adapter.Hackney
│ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
│
└─ test/magma/generation/open_ai_test.exs:3: Magma.Generation.OpenAITest (module)
Expected behavior
The expected behavior is that the use of macros from dependencies should not result in warnings.
The text was updated successfully, but these errors were encountered:
It is actually not true that all warnings in macros are not emitted. We don't emit warnings that may be false positives, for example, variables defined by a macro that may be picked by another macro. In this case, there is no possibility of false positive here, and you should submit a PR to the package. :) Thank you.
Elixir and Erlang/OTP versions
Erlang/OTP 26 [erts-14.0.2] [source] [64-bit] [smp:10:10] [ds:10:10:10] [async-threads:1] [jit]
Elixir 1.16.0-rc.0 (792d4cc) (compiled with Erlang/OTP 26)
Operating system
MacOS Sonoma 14.1
Current behavior
After upgrading to Elixir v1.16.0-rc.0, I started receiving a warning when using a macro from the ExVCR test dependency. This was not the case with the previous Elixir version (1.15.4) and the warning is raised from the expanded code of the dependency, which is not directly under my control.
Here's the code causing the warning:
When running the tests, the following warning is emitted:
Expected behavior
The expected behavior is that the use of macros from dependencies should not result in warnings.
The text was updated successfully, but these errors were encountered: