Undercompilation of MillConfigParser.parser
after change in MillConfig
#2315
Labels
upstream
The issue originates in an upstream dependency
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 inmill.MillConfig
, a recompile results in only on recompiled fileMillConfig.scala
. The fileMillConfigParser.scala
gets not recompiled, yet it contains alazy val usageText = parser.helpText()
(parser is aprivate[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
The text was updated successfully, but these errors were encountered: