Skip to content

Commit e3c4028

Browse files
authored
Merge pull request #344 from scala/backport-lts-3.3-22905
Backport "Update getting started docs." to 3.3 LTS
2 parents ad62e3f + 3873ab0 commit e3c4028

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

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

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,15 @@ want to make sure you do two things:
4242
+ val enableBspAllProjects = true,
4343
```
4444

45-
2. Run `sbt publishLocal` to get the needed presentation compiler jars.
45+
2. Run in sbt shell `sbt> scala3-bootstrapped/compile` and then `sbt> scala3-bootstrapped/publishLocalBin`
46+
to get the required presentation compiler jars.
47+
48+
If any step fails due to random errors, try removing `./out/` directory and running `sbt> clean`
49+
50+
This step has to be repeated every time compiler version has been bumped.
51+
52+
53+
4654

4755
By default Metals uses Bloop build server, however you can also use sbt
4856
directly. You can achieve this with the `Metals: Switch Build Server` command

tests/neg/type-params.check

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
| s does not take type parameters
1111
|
1212
| longer explanation available when compiling with `-explain`
13+
-- Error: tests/neg/type-params.scala:17:35 ----------------------------------------------------------------------------
14+
17 | class WellKindedWrongSyntax[s <: List] // error
15+
| ^^^^
16+
| type List takes type parameters
1317
-- Error: tests/neg/type-params.scala:21:26 ----------------------------------------------------------------------------
1418
21 | object mp extends Monad[Tuple2] // error
1519
| ^^^^^^

tests/neg/type-params.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class `various ancient kindedness`:
1414
type t = x[x] // error
1515
trait WellKindedBounded[s <: Throwable]:
1616
val foo: s[Int] // error
17-
class WellKindedWrongSyntax[s <: List] // must be s[x] <: List[x] ?
17+
class WellKindedWrongSyntax[s <: List] // error
1818

1919
class Monad[m[x]]
2020

0 commit comments

Comments
 (0)