Skip to content

Backport "Update getting started docs." to 3.3 LTS #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion docs/_docs/contributing/setting-up-your-ide.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,15 @@ want to make sure you do two things:
+ val enableBspAllProjects = true,
```

2. Run `sbt publishLocal` to get the needed presentation compiler jars.
2. Run in sbt shell `sbt> scala3-bootstrapped/compile` and then `sbt> scala3-bootstrapped/publishLocalBin`
to get the required presentation compiler jars.

If any step fails due to random errors, try removing `./out/` directory and running `sbt> clean`

This step has to be repeated every time compiler version has been bumped.




By default Metals uses Bloop build server, however you can also use sbt
directly. You can achieve this with the `Metals: Switch Build Server` command
Expand Down
4 changes: 4 additions & 0 deletions tests/neg/type-params.check
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
| s does not take type parameters
|
| longer explanation available when compiling with `-explain`
-- Error: tests/neg/type-params.scala:17:35 ----------------------------------------------------------------------------
17 | class WellKindedWrongSyntax[s <: List] // error
| ^^^^
| type List takes type parameters
-- Error: tests/neg/type-params.scala:21:26 ----------------------------------------------------------------------------
21 | object mp extends Monad[Tuple2] // error
| ^^^^^^
Expand Down
2 changes: 1 addition & 1 deletion tests/neg/type-params.scala
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class `various ancient kindedness`:
type t = x[x] // error
trait WellKindedBounded[s <: Throwable]:
val foo: s[Int] // error
class WellKindedWrongSyntax[s <: List] // must be s[x] <: List[x] ?
class WellKindedWrongSyntax[s <: List] // error

class Monad[m[x]]

Expand Down