diff options
-rw-r--r-- | core/src/mill/define/Module.scala | 1 | ||||
-rw-r--r-- | core/src/mill/main/ReplApplyHandler.scala | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/core/src/mill/define/Module.scala b/core/src/mill/define/Module.scala index c68c2bdd..1be75e1d 100644 --- a/core/src/mill/define/Module.scala +++ b/core/src/mill/define/Module.scala @@ -29,6 +29,7 @@ class Module(implicit outerCtx0: mill.define.Ctx) extends mill.moduledefs.Cacher implicit def millModuleSegments: Segments = { millOuterCtx.segments ++ Seq(millOuterCtx.segment) } + override def toString = millModuleSegments.render } object Module{ diff --git a/core/src/mill/main/ReplApplyHandler.scala b/core/src/mill/main/ReplApplyHandler.scala index 97efb6e5..cc4d3c64 100644 --- a/core/src/mill/main/ReplApplyHandler.scala +++ b/core/src/mill/main/ReplApplyHandler.scala @@ -75,7 +75,7 @@ class ReplApplyHandler(pprinter0: pprint.PPrinter, "\n (" + x._1.map(pprint.PPrinter.BlackWhite.apply(_)).mkString(", ") + ")" ) ) - case m: mill.Module if evaluator.rootModule.millModuleDirectChildren.contains(m) => + case m: mill.Module if evaluator.rootModule.millInternal.modules.contains(m) => pprint.Tree.Lazy( ctx => Iterator(m.millInternal.millModuleEnclosing, ":", m.millInternal.millModuleLine.toString) ++ (if (m.millInternal.reflect[mill.Module].isEmpty) Nil |