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
You'll need a Java SDK (6 or newer), Apache Ant (version 1.9.0 or above), and curl (for `./pull-binary-libs.sh`).
73
+
You'll need a Java SDK. The baseline version is 6 for 2.11.x, 8 for
74
+
2.12.x. (It's also possible to use a later SDK for local development,
75
+
but the CI will verify against the baseline version.)
76
+
77
+
You'll also need Apache Ant (version 1.9.0 or above) and curl (for `./pull-binary-libs.sh`).
78
78
79
79
## Git Hygiene
80
80
@@ -129,25 +129,10 @@ Here, `<milestone>` is the milestone targeted by the PR (e.g., 2.11.6), and `<sh
129
129
130
130
## IDE Setup
131
131
### Eclipse
132
-
Download the [Scala IDE bundle](http://scala-ide.org/download/sdk.html). It comes preconfigured for optimal performance.
133
-
134
-
- Run `ant init` to download some necessary jars.
135
-
- Import the project (in `src/eclipse`) via `File` → `Import Existing Projects into Workspace`. Check all projects and click ok.
136
-
137
-
For important details on building, debugging and file encodings, please see [the excellent tutorial on scala-ide.org](http://scala-ide.org/docs/tutorials/scalac-trunk/index.html) and the included README.md in src/eclipse.
132
+
See `src/eclipse/README.md`.
138
133
139
134
### IntelliJ 14
140
-
Use the latest IntelliJ IDEA release and install the Scala plugin from within the IDE.
141
-
142
-
The following steps are required to use IntelliJ IDEA on Scala trunk
143
-
- Run `ant init`. This will download some JARs to `./build/deps`, which are included in IntelliJ's classpath.
144
-
- Run `./src/intellij/setup.sh`.
145
-
- Open `./src/intellij/scala.ipr` in IntelliJ.
146
-
-`File` → `Project Structure` → `Project` → `Project SDK`. Create an SDK entry named "1.6" containing the Java 1.6 SDK.
147
-
(You may use a later SDK for local development, but the CI will verify against Java 6.)
148
-
149
-
Compilation within IDEA is performed in `-Dlocker.skip=1` mode: the sources are built
150
-
directly using the STARR compiler (which is downloaded from [the Central Repository](http://central.sonatype.org/), according to `starr.version` in `versions.properties`).
Copy file name to clipboardExpand all lines: src/eclipse/README.md
+11-6
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,18 @@
1
1
Eclipse project files
2
2
=====================
3
3
4
-
The following points describe how to get Scala to run in Eclipse. Please also take a look at the [excellent tutorial on scala-ide.org](http://scala-ide.org/docs/tutorials/scalac-trunk/index.html).
4
+
For important details on building, debugging and file encodings, please see [the excellent tutorial on scala-ide.org](http://scala-ide.org/docs/tutorials/scalac-trunk/index.html).
5
5
6
-
0. Import all projects into a [very recent version of Scala IDE for Eclipse](http://scala-ide.org/download/nightly.html) by choosing `File/Import Existing Projects`
7
-
and navigate to `scala/src/eclipse`. Check all projects and click ok.
6
+
The following points describe how to build Scala using Eclipse.
8
7
9
-
0. You need to define a `path variable` inside Eclipse. Define `SCALA_BASEDIR` in
10
-
`Preferences/General/Workspace/Linked Resources`. The value should be the absolute
8
+
0. Download the [Scala IDE bundle](http://scala-ide.org/download/sdk.html). It comes preconfigured for optimal performance.
9
+
10
+
0. Run `ant init` to download some necessary jars.
11
+
12
+
0. Import the project (in `src/eclipse`) via `File` → `Import Existing Projects` and navigate to `scala/src/eclipse`. Check all projects and click ok.
13
+
14
+
0. You need to define a `path variable` inside Eclipse. Define `SCALA_BASEDIR` in
15
+
`Preferences/General/Workspace/Linked Resources`. The value should be the absolute
11
16
path to your Scala checkout. All paths in the project files are relative to this one,
12
17
so nothing will work before you do so.
13
18
@@ -29,7 +34,7 @@ JDK. The Scala library uses such APIs, so you'd see this error:
29
34
Access restriction: The method compareAndSwapObject(Object, long, Object, Object)
30
35
from the type Unsafe is not accessible due to restriction on required library.
31
36
32
-
You can *fix* it by allowing calls to restricted APIs in `Java/Compiler/Errors/Warnings/Deprecated and Restricted API`
37
+
You can *fix* it by allowing calls to restricted APIs in `Java/Compiler/Errors/Warnings/Deprecated and Restricted API`
33
38
settings.
34
39
35
40
0. Project files are tracked by Git, so adding them to `.gitignore` won't prevent them
Use the latest IntelliJ IDEA release and install the Scala plugin from within the IDE.
2
+
3
+
Compilation withing IDEA is performed in "-Dlocker.skip=1" mode: the sources are built
4
+
directly using the STARR compiler.
5
+
6
+
The following steps are required to use IntelliJ IDEA on Scala trunk
7
+
- Run `ant init`. This will download some JARs to `./build/deps`, which are included in IntelliJ's classpath.
8
+
- Run `./src/intellij/setup.sh`.
9
+
- Open `./src/intellij/scala.ipr` in IntelliJ.
10
+
-`File` → `Project Structure` → `Project` → `Project SDK`. Create an SDK entry named "1.6" containing the Java 1.6 SDK. (Or other SDK version; see "Requirements" in the repo's main README.)
11
+
12
+
Compilation within IDEA is performed in `-Dlocker.skip=1` mode: the sources are built
13
+
directly using the STARR compiler (which is downloaded from [the Central Repository](http://central.sonatype.org/), according to `starr.version` in `versions.properties`).
0 commit comments