Skip to content

Fix false-negatives for codec registration checker plugin #184

@LukaszKontowski

Description

@LukaszKontowski

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:

  1. sbt compile on existing code (fresh compilation on all files) - compilation succeeds - OK
  2. add new top level serializable class (in a separate file) and do not register it in serializer
  3. sbt compile - compilation succeeds - NOT OK

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcodecsRelates to useful/missing Circe codec (regardless of Akka serialization)nice to haveNot very strictly needed for ASH to be usable

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions