Skip to content

Commit e53cb5b

Browse files
committed
improvement: Remove workaround for Bloop and update docs
1 parent a72b97a commit e53cb5b

File tree

3 files changed

+14
-45
lines changed

3 files changed

+14
-45
lines changed

Diff for: docs/_docs/contributing/setting-up-your-ide.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,15 @@ layout: doc-page
33
title: Setting up your IDE
44
---
55

6-
You can use either Metals with your favorite editor (VS Code, Neovim, Sublime)
7-
or [IntelliJ IDEA for
8-
Scala](https://www.jetbrains.com/help/idea/discover-intellij-idea-for-scala.html)
6+
You can use either Metals with your favorite editor or
7+
[IntelliJ IDEA for Scala](https://www.jetbrains.com/help/idea/discover-intellij-idea-for-scala.html)
98
to work on the Scala 3 codebase. There are however a few additional
109
considerations to take into account.
1110

1211
## Bootstrapping Projects
1312

14-
The sbt build for dotty implements bootstrapping within the same build, so each component has
15-
two projects:
13+
The sbt build for dotty implements bootstrapping within the same build, so each
14+
component has two projects:
1615

1716
```
1817
sbt:scala3> projects
@@ -33,22 +32,23 @@ you'll actually want these modules exported. In order to achieve this you'll
3332
want to make sure you do two things:
3433

3534
1. You'll want to find and change the following under
36-
`commonBootstrappedSettings` which is found in the
37-
[`Build.scala`](https://github.com/scala/scala3/blob/main/project/Build.scala)
38-
file.
35+
`commonBootstrappedSettings` which is found in the
36+
[`Build.scala`](https://github.com/scala/scala3/blob/main/project/Build.scala)
37+
file.
3938

4039
```diff
4140

4241
- bspEnabled := false,
4342
+ bspEnabled := true,
4443
```
4544

46-
2. Set `sbt` as your build server instead of the default, Bloop. You can achieve
47-
this with the `Metals: Switch Build Server` command and then choosing sbt. In
48-
VSCode, this looks like this:
45+
2. Run `sbt publishLocal` to get the needed presentation compiler jars.
4946

50-
![bsp-switch](https://user-images.githubusercontent.com/777748/241986423-0724ae74-0ebd-42ef-a1b7-4d17678992b4.png)
47+
By default Metals uses Bloop build server, however you can also use sbt
48+
directly. You can achieve this with the `Metals: Switch Build Server` command
49+
and then choosing sbt. In VSCode, this looks like this:
5150

51+
![bsp-switch](https://user-images.githubusercontent.com/777748/241986423-0724ae74-0ebd-42ef-a1b7-4d17678992b4.png)
5252

5353
### IntelliJ
5454

Diff for: project/Build.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ object Build {
469469
}
470470

471471
// Settings used when compiling dotty with a non-bootstrapped dotty
472-
lazy val commonBootstrappedSettings = commonDottySettings ++ NoBloopExport.settings ++ Seq(
473-
// To enable support of scaladoc and language-server projects you need to change this to true and use sbt as your build server
472+
lazy val commonBootstrappedSettings = commonDottySettings ++ Seq(
473+
// To enable support of scaladoc and language-server projects you need to change this to true
474474
bspEnabled := false,
475475
(Compile / unmanagedSourceDirectories) += baseDirectory.value / "src-bootstrapped",
476476

Diff for: project/NoBloopExport.scala

-31
This file was deleted.

0 commit comments

Comments
 (0)