There was an error while loading. Please reload this page.
1 parent 9cb49ed commit 6c60ea6Copy full SHA for 6c60ea6
1 file changed
libs/javalib/worker/src/mill/javalib/zinc/TransformingReporter.scala
@@ -82,7 +82,12 @@ private object TransformingReporter {
82
InterfaceUtil.jo2o(pos.sourcePath()) match {
83
case None => message
84
case Some(path) =>
85
- val absPath = os.Path(path)
+ val absPath = os.FilePath(path) match {
86
+ case abs: os.Path => abs
87
+ // Assume relative paths are relative to the current workspaceRoot
88
+ case rel: os.RelPath => workspaceRoot / rel
89
+ case sub: os.SubPath => workspaceRoot / sub
90
+ }
91
// Render paths within the current workspaceRoot as relative paths to cut down on verbosity
92
val displayPath =
93
if absPath.startsWith(workspaceRoot) then absPath.subRelativeTo(workspaceRoot).toString
0 commit comments