From 2b41c5c5b6e9e1743dc63b66da7e06644be71c55 Mon Sep 17 00:00:00 2001 From: Lorenzo Gabriele Date: Mon, 11 Mar 2024 15:16:10 +0100 Subject: [PATCH] Use semanticdb files directly in ScalaModule A copy mechanism was introduced in https://github.com/com-lihaoyi/mill/pull/2227 because of a bug in semanticdb-java But we don't need to use it in ScalaModule as well if the Scala semanticdb works correctly. --- scalalib/src/mill/scalalib/ScalaModule.scala | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scalalib/src/mill/scalalib/ScalaModule.scala b/scalalib/src/mill/scalalib/ScalaModule.scala index da7eed4b6c8..b35e33997d7 100644 --- a/scalalib/src/mill/scalalib/ScalaModule.scala +++ b/scalalib/src/mill/scalalib/ScalaModule.scala @@ -667,8 +667,6 @@ trait ScalaModule extends JavaModule with TestModule.ScalaModuleBase { outer => reportCachedProblems = zincReportCachedProblems(), incrementalCompilation = zincIncrementalCompilation() ) - .map(r => - SemanticDbJavaModule.copySemanticdbFiles(r.classes.path, T.workspace, T.dest / "data") - ) + .map(_.classes) } }