Skip to content

Changes affecting macro generated code are not detected on Scala 3 #1574

@OlegYch

Description

@OlegYch

steps

using macwire wire macro https://github.com/softwaremill/macwire/blob/master/macros/src/main/scala-3/com/softwaremill/macwire/internals/MacwireMacros.scala#L9

call wire for Dep, compile
then change Dep constructor and run Components

repro here https://github.com/OlegYch/macwire-undercompilation

problem

java.lang.NoSuchMethodError at runtime

expectation

Components is recompiled when signature of Dep changes

notes

sbt 1.11.5
originally reported at softwaremill/macwire#412

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions