Skip to content

Commit 98421dd

Browse files
committed
improvement: Disable projects not compiling with Bloop
[Cherry-picked 7aebb9d]
1 parent 867dd2a commit 98421dd

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

docs/_docs/contributing/setting-up-your-ide.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ Normally this is fine, but if you're working on certain modules like `scaladoc`
3131
you'll actually want these modules exported. In order to achieve this you'll
3232
want to make sure you do two things:
3333

34-
1. You'll want to find and change the following under
34+
1. You'll want to find and change the following above
3535
`commonBootstrappedSettings` which is found in the
3636
[`Build.scala`](https://github.com/scala/scala3/blob/main/project/Build.scala)
3737
file.
3838

3939
```diff
4040

41-
- bspEnabled := false,
42-
+ bspEnabled := true,
41+
- val enableBspAllProjects = false,
42+
+ val enableBspAllProjects = true,
4343
```
4444

4545
2. Run `sbt publishLocal` to get the needed presentation compiler jars.

project/Build.scala

+11-1
Original file line numberDiff line numberDiff line change
@@ -364,10 +364,20 @@ object Build {
364364
) ++ extMap
365365
}
366366

367+
/* This projects are irrelevant from IDE point of view and do not compile with Bloop*/
368+
val fullyDisabledProjects = Set(
369+
"scala2-library-cc",
370+
"scala2-library-bootstrapped",
371+
"scala2-library-cc-tasty",
372+
"scala2-library-tasty"
373+
)
374+
375+
val enableBspAllProjects = false
376+
367377
// Settings used when compiling dotty with a non-bootstrapped dotty
368378
lazy val commonBootstrappedSettings = commonDottySettings ++ Seq(
369379
// To enable support of scaladoc and language-server projects you need to change this to true
370-
bspEnabled := false,
380+
bspEnabled := { if(fullyDisabledProjects(name.value)) false else enableBspAllProjects },
371381
(Compile / unmanagedSourceDirectories) += baseDirectory.value / "src-bootstrapped",
372382

373383
version := dottyVersion,

0 commit comments

Comments
 (0)