Skip to content

Commit 7aebb9d

Browse files
committed
improvement: Disable projects not compiling with Bloop
1 parent e53cb5b commit 7aebb9d

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
@@ -468,10 +468,20 @@ object Build {
468468
) ++ extMap
469469
}
470470

471+
/* This projects are irrelevant from IDE point of view and do not compile with Bloop*/
472+
val fullyDisabledProjects = Set(
473+
"scala2-library-cc",
474+
"scala2-library-bootstrapped",
475+
"scala2-library-cc-tasty",
476+
"scala2-library-tasty"
477+
)
478+
479+
val enableBspAllProjects = false
480+
471481
// Settings used when compiling dotty with a non-bootstrapped dotty
472482
lazy val commonBootstrappedSettings = commonDottySettings ++ Seq(
473483
// To enable support of scaladoc and language-server projects you need to change this to true
474-
bspEnabled := false,
484+
bspEnabled := { if(fullyDisabledProjects(name.value)) false else enableBspAllProjects },
475485
(Compile / unmanagedSourceDirectories) += baseDirectory.value / "src-bootstrapped",
476486

477487
version := dottyVersion,

0 commit comments

Comments
 (0)