spark warning on compilation

I get bombarded by these warnings:
warning: Entity without __spark_metadata__ field is deprecated. Entity Reactor.Dsl.Middleware does not define a `__spark_metadata__` field. This field is required to acces
s source annotations. Add `__spark_metadata__: nil` to the defstruct for Reactor.Dsl.Middleware.
(elixir 1.18.4) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
(spark 2.3.4) lib/spark/dsl/extension.ex:2135: Spark.Dsl.Extension.__after_verify__/1
(elixir 1.18.4) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
(elixir 1.18.4) lib/module/parallel_checker.ex:244: Module.ParallelChecker.check_module/3
(elixir 1.18.4) lib/module/parallel_checker.ex:90: anonymous fn/7 in Module.ParallelChecker.inner_spawn/6
warning: Entity without __spark_metadata__ field is deprecated. Entity Reactor.Dsl.Middleware does not define a `__spark_metadata__` field. This field is required to acces
s source annotations. Add `__spark_metadata__: nil` to the defstruct for Reactor.Dsl.Middleware.
(elixir 1.18.4) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
(spark 2.3.4) lib/spark/dsl/extension.ex:2135: Spark.Dsl.Extension.__after_verify__/1
(elixir 1.18.4) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
(elixir 1.18.4) lib/module/parallel_checker.ex:244: Module.ParallelChecker.check_module/3
(elixir 1.18.4) lib/module/parallel_checker.ex:90: anonymous fn/7 in Module.ParallelChecker.inner_spawn/6
Maybe this is due to the last spark change, the one to handle compilation errors and provide better messages?
5 Replies
Jonatan Männchen
Yes, this is because of the source location info that is required for the better error handling. It's already fixed in reactor, but not yet released.
ZachDaniel
ZachDaniel7d ago
Yeah it should only be on deps compilation Not in your normal compilation. Are you seeing it while compiling your app? (I.e not when compiling the dependency?)
Abu kumathra
Abu kumathraOP7d ago
I was compiling deps because I was working on the multi full_text segments in ash_ai
ZachDaniel
ZachDaniel7d ago
Gotcha. Nothing to be alarmed by just something we should fix But I'm busy 😆 Anyone who wants to add those fields to those structs is welcome to
Abu kumathra
Abu kumathraOP7d ago
no worries just thought to let you know if it's "important"

Did you find this page helpful?