Skip to content

Commit

Permalink
improvement: Disable projects not compiling with Bloop
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Oct 31, 2024
1 parent e53cb5b commit 7aebb9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/_docs/contributing/setting-up-your-ide.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ Normally this is fine, but if you're working on certain modules like `scaladoc`
you'll actually want these modules exported. In order to achieve this you'll
want to make sure you do two things:

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

```diff

- bspEnabled := false,
+ bspEnabled := true,
- val enableBspAllProjects = false,
+ val enableBspAllProjects = true,
```

2. Run `sbt publishLocal` to get the needed presentation compiler jars.
Expand Down
12 changes: 11 additions & 1 deletion project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -468,10 +468,20 @@ object Build {
) ++ extMap
}

/* This projects are irrelevant from IDE point of view and do not compile with Bloop*/
val fullyDisabledProjects = Set(
"scala2-library-cc",
"scala2-library-bootstrapped",
"scala2-library-cc-tasty",
"scala2-library-tasty"
)

val enableBspAllProjects = false

// Settings used when compiling dotty with a non-bootstrapped dotty
lazy val commonBootstrappedSettings = commonDottySettings ++ Seq(
// To enable support of scaladoc and language-server projects you need to change this to true
bspEnabled := false,
bspEnabled := { if(fullyDisabledProjects(name.value)) false else enableBspAllProjects },
(Compile / unmanagedSourceDirectories) += baseDirectory.value / "src-bootstrapped",

version := dottyVersion,
Expand Down

0 comments on commit 7aebb9d

Please sign in to comment.