Describe the bug
Compiler deprecation warnings if Application.fetch_env is used in a spark_function_behavior option. More generally, the anonymous function body is being unquoted into the module body during compile, causing this issue Elixir to emit deprecation warnings for code that is actually only called at runtime.
To Reproduce
Put Application.fetch_env inside any options which are of spark_function_behaviour type.
Expected behavior
There should be no compiler warnings, and yet all is still well.
Runtime
Elixir version 1.14.1
Erlang version 25.2
OS Ubuntu devcontainer
Spark version 0.2.8
any related extension versions
Additional context
Add any other context about the problem here.
Describe the bug Compiler deprecation warnings if
Application.fetch_env
is used in aspark_function_behavior
option. More generally, the anonymous function body is being unquoted into the module body during compile, causing this issue Elixir to emit deprecation warnings for code that is actually only called at runtime.To Reproduce Put
Application.fetch_env
inside any options which are ofspark_function_behaviour
type.Expected behavior There should be no compiler warnings, and yet all is still well.
Runtime
Additional context Add any other context about the problem here.