Open LukaszKontowski opened 2 years ago
This issue is related to the way CirceAkkaSerializer (CAS) works. For CAS the problem is that:
In fact - we would need to force compilation of the A.scala file in such situations to catch such errors.
org.virtuslab.ash.circe.enable-missing-codecs-check
config key can be removed if this is done, right?
Yes, and connected part of logic - method checkSerializableTypesForMissingCodec
In specific scenarios, codec registration checker plugin does not find missing codec registrations - i.e. when using sbt incremental compilation. Example scenario with explanation - steps to be performed on a project that uses ASH:
If we would perform only steps 2. and 3. - sbt compile would end in an error (which is what we want) saying that there are missing codec registrations. So, this is an issue with incremental compilation. The reason of this issue is to fix such "false negatives". Compilation should never succeed for situations as described above - whether this is full compilation on all sources - or just an incremental compilation on one or more added files.