Undercompilation of `MillConfigParser.parser` after change in `MillConfig`
This is probably not an issue in Mill, but in either Zinc or mainargs.
After a clean build when changing the @arg.doc attribute of one argument in mill.MillConfig, a recompile results in only on recompiled file MillConfig.scala. The file MillConfigParser.scala gets not recompiled, yet it contains a lazy val usageText = parser.helpText() (parser is a private[this] lazy val parser: ParserForClass[MillConfig] = mainargs.ParserForClass[MillConfig]), which needs to re-evaluate once the annotated config class changes.
This results in outdate/stale help messages.
Here is a reprodcution: https://github.com/lefou/mainargs-undercompilation-reproduction
- See https://github.com/sbt/zinc/issues/1171
Let's close this, since it's a zinc/macro problem that applies to all macros, and there's really not much can do on the Mill side of things