Skip to content

Commit 441956d

Browse files
committed
Merge remote-tracking branch 'scala3/main' into sync-stdlib (fix conflicts)
2 parents 990382f + 0fa2932 commit 441956d

File tree

23,886 files changed

+889963
-1203
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

23,886 files changed

+889963
-1203
lines changed

.git-blame-ignore-revs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
46a26945a172429740ebdd1fc83517130670080b

.gitattributes

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# These files are text and should be normalized (convert crlf => lf)
2+
3+
*.c text eol=lf
4+
*.check text eol=lf
5+
*.css text eol=lf
6+
*.html text eol=lf
7+
*.java text eol=lf
8+
*.js text eol=lf
9+
*.sbt text eol=lf
10+
*.scala text eol=lf
11+
*.sh text eol=lf
12+
*.txt text eol=lf
13+
*.xml text eol=lf
14+
15+
# Windows-specific files get windows endings
16+
*.bat eol=crlf
17+
*.cmd eol=crlf
18+
*-windows.tmpl eol=crlf
19+
20+
# Some binary file types for completeness
21+
# (binary is a macro for -text -diff)
22+
*.dll binary
23+
*.gif binary
24+
*.jpg binary
25+
*.png binary
26+
*.class binary
27+
*.jar binary

.github/CODEOWNERS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Any changes to the Scala 3 Standard Library must be approve
2+
# by one of the officers responsible of maintaining it
3+
/library/ @scala/stdlib-officers
4+
/library-aux/ @scala/stdlib-officers
5+
/library-js/ @scala/stdlib-officers

.github/Dockerfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
FROM ubuntu:22.04
2+
3+
# The default locale is "POSIX" which is just ASCII.
4+
ENV LANG C.UTF-8
5+
ENV DEBIAN_FRONTEND noninteractive
6+
ENV TZ Europe/Zurich
7+
8+
# Add packages to image, set default JDK version
9+
RUN apt-get update && \
10+
apt-get upgrade -y && \
11+
# Use a PPA to get Java 17
12+
apt-get install -y software-properties-common && add-apt-repository ppa:openjdk-r/ppa && \
13+
apt-get install -y bash curl git ssh htop nano vim-tiny zile \
14+
openjdk-8-jdk-headless \
15+
openjdk-17-jdk-headless \
16+
openjdk-21-jdk-headless && \
17+
(curl -fsSL https://deb.nodesource.com/setup_18.x | bash -) && \
18+
apt-get install -y nodejs && \
19+
apt-get install -y zip unzip
20+
21+
22+
# Install sbt
23+
ENV SBT_HOME /usr/local/sbt
24+
ENV PATH ${SBT_HOME}/bin:${PATH}
25+
ENV SBT_VERSION 1.10.7
26+
RUN curl -sL "https://github.com/sbt/sbt/releases/download/v$SBT_VERSION/sbt-$SBT_VERSION.tgz" | gunzip | tar -x -C /usr/local

.github/ISSUE_TEMPLATE/bug.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
name: "\U0001F41B Bug report"
3+
about: Report a bug about the Dotty Compiler
4+
title: ''
5+
labels: itype:bug, stat:needs triage
6+
assignees: ''
7+
8+
---
9+
10+
## Compiler version
11+
12+
If you're not sure which version you're using, run `print scalaVersion` from sbt.
13+
(If you're running scalac manually, use `scalac -version` instead.)
14+
15+
If possible, check if your issue appears in the nightly version of the compiler! For example, in Scala CLI (the `scala`/`scala-cli` runner script), you can use `//> using scala 3.nightly` (or `-S 3.nightly` from the command line) to grab the latest one.
16+
17+
## Minimized code
18+
19+
<!--
20+
This code should be self contained, compilable (with possible failures) and as small as possible.
21+
22+
Ideally, we should be able to just copy this code to a file and run `scalac` (and maybe `scala`) to reproduce the issue.
23+
24+
If the code has external dependencies, please provide the Scala CLI directives (or SBT/other build tool configuration) that describe them.
25+
Also note that it's easier and faster for the maintenance team to address issues minimised to reproduce bugs without external dependencies.
26+
27+
It's most convenient to also include `using` directives for the Scala version that demonstrates the problem,
28+
any compiler command-line options, as well as dependencies. An example is provided.
29+
30+
It's also fine to paste the transcript of a REPL session. Note that some bugs may be specific to the REPL.
31+
-->
32+
33+
```scala
34+
//> using scala 3.7.0
35+
//> using options -Wall -Werror
36+
//> using dep com.outr::scribe:3.16.1
37+
38+
@main def test = println("hello, world")
39+
```
40+
41+
## Output
42+
43+
```scala
44+
// TODO add output here
45+
```
46+
47+
## Expectation

.github/ISSUE_TEMPLATE/crash.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
name: "\U0001F4A5 Crash report"
3+
about: Report a Dotty compiler crash
4+
title: ''
5+
labels: itype:bug, itype:crash, stat:needs triage
6+
assignees: ''
7+
8+
---
9+
10+
## Compiler version
11+
12+
If you're not sure what version you're using, run `print scalaVersion` from sbt
13+
(if you're running scalac manually, use `scalac -version` instead).
14+
15+
## Minimized code
16+
17+
<!--
18+
This code should be self contained, compilable (with possible failures) and as small as possible.
19+
20+
Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue.
21+
-->
22+
23+
```Scala
24+
println("hello, world")
25+
```
26+
27+
## Output (click arrow to expand)
28+
<!--
29+
Note: to get a full crash log when using scala-cli, run compilation with the flag `--server=false`
30+
-->
31+
<details>
32+
33+
```scala
34+
// TODO add output here
35+
```
36+
</details>

.github/ISSUE_TEMPLATE/feature.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: "\U0001F389 Suggest a feature"
3+
about: Please create a feature request here https://github.com/scala/scala3/discussions/new?category=feature-requests
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Please create a feature request in the [Dotty Discussions](https://github.com/scala/scala3/discussions/new?category=feature-requests).
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
name: "\U0001F615 Error/Warning message report"
3+
about: Report an error/warning message that was confusing/unhelpful
4+
title: ''
5+
labels: itype:enhancement, area:reporting, better-errors, stat:needs triage
6+
assignees: ''
7+
8+
---
9+
10+
## Compiler version
11+
12+
If you're not sure what version you're using, run `print scalaVersion` from sbt
13+
(if you're running scalac manually, use `scalac -version` instead).
14+
15+
## Minimized example
16+
17+
<!--
18+
This code should be self-contained, reproducible (i.e. produces the expected error/warning message) and as small as possible.
19+
20+
Ideally, we should be able to just copy this code in a file and run `scalac` (and maybe `scala`) to reproduce the issue.
21+
22+
For a good example, see https://github.com/scala/scala3/issues/18657
23+
-->
24+
25+
```Scala
26+
printl("hello, world")
27+
```
28+
29+
## Output Error/Warning message
30+
31+
<!--
32+
Here, please provide the produced error/warning message that is confusing/unhelpful, etc.
33+
34+
for example:
35+
-->
36+
37+
```scala
38+
-- [E006] Not Found Error: ----------------
39+
1 |printl("hello, world")
40+
|^^^^^^
41+
|Not found: printl
42+
1 error found
43+
```
44+
45+
## Why this Error/Warning was not helpful
46+
47+
<!-- For a good example, see https://github.com/scala/scala3/issues/18657 -->
48+
49+
The message was unhelpful because...
50+
51+
## Suggested improvement
52+
53+
<!-- For a good example, see https://github.com/scala/scala3/issues/18657 -->
54+
55+
It could be made more helpful by...
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
name: Other issue
3+
about: Report an issue about the Dotty Compiler (not bug or crash)
4+
title: ''
5+
labels: stat:needs triage
6+
assignees: ''
7+
8+
---
9+
10+
## Compiler version
11+
12+
If you're not sure what version you're using, run `print scalaVersion` from sbt
13+
(if you're running scalac manually, use `scalac -version` instead).
14+
15+
## Minimized example
16+
17+
```Scala
18+
println("hello, world")
19+
```
20+
21+
## Output
22+
23+
```scala
24+
// TODO add output here
25+
```
26+
27+
## Expectation
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
name: Syntax highlighting
3+
about: Please create a syntax highlighting issue in a respective repo
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
Please create a syntax highlighting issue here
11+
* VS Code / GitHub: https://github.com/scala/vscode-scala-syntax/issues
12+
* IntelliJ: https://youtrack.jetbrains.com/issues/SCL?q=tag:%20%7BScala%203%7D%20tag:%20%7BSyntax%20Highlighting%7D
13+
* highlight.js: https://github.com/highlightjs/highlight.js/issues

0 commit comments

Comments
 (0)