summaryrefslogtreecommitdiff
path: root/src/eclipse/README.md
diff options
context:
space:
mode:
authorSimon Schäfer <mail@antoras.de>2015-09-16 16:59:39 +0200
committerSimon Schäfer <mail@antoras.de>2015-09-16 17:37:43 +0200
commit865bc1c3028423cb268bfaad3a2aeb7a07dbbb21 (patch)
tree23c87447d98b9a5ccc9adb4b696f687f8214f2cc /src/eclipse/README.md
parentc10631d0ffa2788d64a25960c484da4355269867 (diff)
downloadscala-865bc1c3028423cb268bfaad3a2aeb7a07dbbb21.tar.gz
scala-865bc1c3028423cb268bfaad3a2aeb7a07dbbb21.tar.bz2
scala-865bc1c3028423cb268bfaad3a2aeb7a07dbbb21.zip
Update README for Eclipse setup
Diffstat (limited to 'src/eclipse/README.md')
-rw-r--r--src/eclipse/README.md13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/eclipse/README.md b/src/eclipse/README.md
index 03c7403b04..a0152faa86 100644
--- a/src/eclipse/README.md
+++ b/src/eclipse/README.md
@@ -6,8 +6,8 @@ The following points describe how to get Scala to run in Eclipse. Please also ta
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`
and navigate to `scala/src/eclipse`. Check all projects and click ok.
-0. You need to define a `path variable` inside Eclipse. Define `SCALA_BASEDIR` in
-`Preferences/General/Workspace/Linked Resources`. The value should be the absolute
+0. You need to define a `path variable` inside Eclipse. Define `SCALA_BASEDIR` in
+`Preferences/General/Workspace/Linked Resources`. The value should be the absolute
path to your Scala checkout. All paths in the project files are relative to this one,
so nothing will work before you do so.
@@ -29,7 +29,7 @@ JDK. The Scala library uses such APIs, so you'd see this error:
Access restriction: The method compareAndSwapObject(Object, long, Object, Object)
from the type Unsafe is not accessible due to restriction on required library.
- You can *fix* it by allowing calls to restricted APIs in `Java/Compiler/Errors/Warnings/Deprecated and Restricted API`
+ You can *fix* it by allowing calls to restricted APIs in `Java/Compiler/Errors/Warnings/Deprecated and Restricted API`
settings.
0. Project files are tracked by Git, so adding them to `.gitignore` won't prevent them
@@ -42,6 +42,13 @@ consider them unchanged:
git update-index --no-assume-unchanged `find src/eclipse -iname .classpath -or -iname .project`
+0. The 2.12, sources of Scala need to be built with a 2.12 version of the compiler. One can configure a 2.12 Scala installation
+in Eclipse. In order to do this, go to `Window -> Preferences -> Scala -> Installations` and add a 2.12 installation. You can
+either download a prepackaged version of 2.12 from the Scala homepage or you add the Scala installation that is part of the
+`build/pack/lib` directory. The latter is required in case you absolutely need to depend on a nightly build of the compiler to
+compile the compiler itself. Once the 2.12 Scala installation is created you need to select all Scala projects, do a right click
+and select `Scala -> Set the Scala installation` where you have to choose the newly created 2.12 Scala installation.
+
If it doesn’t compile
=====================