From 40b03a4aed9f19abd4b1b4b2cc735497ba09b176 Mon Sep 17 00:00:00 2001 From: TzeKei Lee Date: Wed, 11 Dec 2024 17:25:41 +0800 Subject: [PATCH] make bsp build on TestModule success instead of fail --- bsp/worker/src/mill/bsp/worker/MillBuildServer.scala | 1 + 1 file changed, 1 insertion(+) diff --git a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala index a062ea06fe8..2630cf04881 100644 --- a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala +++ b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala @@ -385,6 +385,7 @@ private class MillBuildServer( case (m: SemanticDbJavaModule, ev) if clientWantsSemanticDb => (m.compiledClassesAndSemanticDbFiles, ev) case (m: JavaModule, ev) => (m.compile, ev) + case (m: TestModule, ev) => (Task.Anon{()}, ev) case (m, ev) => Task.Anon { Result.Failure( s"Don't know how to compile non-Java target ${m.bspBuildTarget.displayName}"