You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<span class="hljs-keyword">val</span> a = <span class="hljs-string">s"The time is <span class="hljs-subst">${now()}</span>"</span> <span class="hljs-comment">// still have access to the now method from above</span>
<span class="hljs-keyword">val</span> myFoo = <span class="hljs-type">Foo</span>(<span class="hljs-string">"hi"</span>) <span class="hljs-comment">// now we only have access to the last Foo</span>
262
-
```
263
-
</code></pre></div></div>
254
+
```</code></pre></div></div>
264
255
265
256
[collections-overview]: {% link _overviews/collections-2.13/introduction.md %}
Copy file name to clipboardExpand all lines: _overviews/contribute/bug-reporting-guide.md
+7-6Lines changed: 7 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,16 @@ title: Bug Reporting Guide
3
3
num: 8
4
4
---
5
5
6
-
The Scala compiler and standard library bug tracker is located at [https://github.com/scala/bug](https://github.com/scala/bug), and for Scala 3, it is located at [github.com/lampepfl/dotty](https://github.com/lampepfl/dotty/issues). Before you submit a bug make sure that it is certainly a bug by following instructions in *Is it a Bug?*.
6
+
The Scala compiler and standard library bug tracker is located at [https://github.com/scala/bug](https://github.com/scala/bug), and for Scala 3, it is located at [github.com/lampepfl/dotty](https://github.com/lampepfl/dotty/issues). Before you submit a bug make sure that it is certainly a bug by following instructions
7
+
in [Is it a Bug?](#is-it-a-bug).
7
8
8
9
## Is it a Bug?
9
10
10
11
The first step in identifying a bug is to identify which component of the Scala distribution is affected. First, ensure that your issue falls within any of the following categories:
11
12
12
13
-**Library** bugs typically manifest themselves as run-time exceptions, or as *unexpected*/*unintuitive* behavior of Scala Standard Library methods.
13
14
-**Compiler** errors are manifested as compile time exceptions, unexpected behavior of your code at run time, or invalid behavior of the type system.
14
-
-**Reflection** are bugs that appear in the ‘scala.reflect’ package. For the *reflection* bugs, the same rules apply as for the *library* bugs.
15
+
-**Reflection** are bugs that appear in the `scala.reflect` package. For the *reflection* bugs, the same rules apply as for the *library* bugs.
15
16
-**Scaladoc** bugs are manifested as a logical problems in the information it presents (that is, the displayed information is incorrect, such as an incorrect subclassing relationship), or incorrect behavior of the user interface. If you'd like to suggest a change in the content of the documentation, please submit a pull request (possible to do in the browser using GitHub, which is easier and faster than filing a bug). Please file a bug about the content of documentation only if you cannot provide a suggestion for its fix.
16
17
17
18
If your issue is related to any of the following external projects, make sure to use its appropriate issue tracker:
@@ -31,13 +32,13 @@ If you have a code snippet that is resulting in bytecode which you believe is be
31
32
32
33
* Make sure you minimize your problem. To correctly minimize the problem follow the following instructions:
33
34
34
-
1. Gradually take apart the offensive code snippet until you believe you have the simplest representation of your problem.
35
+
1. Gradually remove parts from the original failing code snippet until you believe you have the simplest representation of your problem.
35
36
36
-
2. Ensure that you have decoupled your code snippet from any library that could be introducing the offensive behavior. One way to achieve this is to try to recompile the offensive code snippet in isolation, outside of the context of any complex build environment. If your code depends on some strictly Java library and source code is available for it, make sure that the latter is also minimized.
37
+
2. Ensure that you have decoupled your code snippet from any library that could be introducing the incorrect behavior. One way to achieve this is to try to recompile the offending code snippet in isolation, outside of the context of any complex build environment. If your code depends on some strictly Java library and source code is available for it, make sure that the latter is also minimized.
37
38
38
39
3. Make sure you are compiling your project from a clean slate. Your problem could be related to separate compilation, which is difficult to detect without a clean build with new `.class` files.
39
40
40
-
4. If you have encountered a bug while building your code in the IDE, then please reproduce it on the command line. The same rule applies for build tools like `sbt` or `ant`.
41
+
4. If you have encountered a bug while building your code in the IDE, then please reproduce it on the command line. The same rule applies for build tools like **sbt** or **Mill**.
41
42
42
43
5. If you want to file an improvement in the issue tracker please discuss it first on one of the mailing lists. They offer much bigger audience than issue tracker. The latter is not suitable for long discussions.
43
44
@@ -69,7 +70,7 @@ Please make sure to fill in as many fields as possible. Make sure you've indicat
69
70
3.**Labels** related to your issue. For example, if you think your issue is related to the typechecker, and if you have successfully minimized your issue, label your bug as "typechecker" and "minimized". Issue tracker will suggest names for existing labels as you type them so try not to create duplicates.
70
71
4.**Running environment**. Are you running on Linux? Windows? What JVM version are you using?
71
72
72
-
In order for us to quickly triage the bug that you've found, it's important that the code snippet which produces the observed issue is as minimized as possible. For advice on minimizing your code snippet, please see the appropriate subsection of the above (Is it a Bug?).
73
+
In order for us to quickly triage the bug that you've found, it's important that the code snippet which produces the observed issue is as minimized as possible. For advice on minimizing your code snippet, please see the appropriate subsection of the above ([Is it a Bug?](#is-it-a-bug)).
Please read this page, and the pages linked from this one, fully before contributing documentation. Many of the questions you have will be answered in these resources. If you have a question that isn't answered, feel free to ask on the [Scala Contributors](https://contributors.scala-lang.org/)mailing list and then, please, submit a pull request with updated documentation reflecting that answer.
13
+
Please read this page, and the pages linked from this one, fully before contributing documentation. Many frequently asked questions will be answered in these resources. If you have a question that isn't answered, feel free to ask on the [Scala Contributors](https://contributors.scala-lang.org/)forum and then, please, submit a pull request with updated documentation reflecting that answer.
14
14
15
15
**General requirements** for documentation submissions include spell-checking all written language, ensuring code samples compile and run correctly, correct grammar, and clean formatting/layout of the documentation.
Copy file name to clipboardExpand all lines: _overviews/contribute/guide.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ num: 10
18
18
Just to name a few common reasons:
19
19
20
20
* contributing a patch is the best way to make sure your desired changes will be available in the next Scala version
21
-
* Scala is written in Scala, so going through the source code and patching it will improve your Scala-fu
21
+
* Scala is written in Scala, so going through the source code and patching it will improve your knowledge of Scala.
22
22
* last but not least, it only takes a few accepted commits to make it into the [Scala Contributor Hall of Fame](https://github.com/scala/scala/contributors).
23
23
24
24
The main Scala project consists of the standard Scala library, the Scala reflection and macros library,
0 commit comments