Skip to content

Commit b4a51fc

Browse files
authored
Merge pull request #2319 from dotty-staging/fix/doc-ide
Document IDE import
2 parents 28d4057 + a142a5d commit b4a51fc

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

docs/docs/contributing/eclipse.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Building Dotty with Eclipse
66
Build setup
77
-----------
88

9-
1. Run `sbt eclipse`
9+
1. Run `sbt ;managedSources;eclipse`
1010

1111
2. It is recommended to change the default output folder (in `Properties > java
1212
build path > Source`) to `dotty/classes` instead of `dotty/bin` because
@@ -21,9 +21,6 @@ If you have `CLASSPATH` defined:
2121
that it contains a `CLASSPATH` variable which reflects the current
2222
`CLASSPATH`.
2323

24-
In order for compilation errors related to `ENUM` to be resolved, make sure
25-
that scala-reflect 2.11.5 is on the classpath.
26-
2724
Running the compiler Main class from Eclipse
2825
--------------------------------------------
2926
1. Navigate to `dotty.tools.dotc.Main`

docs/docs/contributing/getting-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Start by cloning the repository:
2626
```bash
2727
$ git clone --recursive https://github.com/lampepfl/dotty.git
2828
$ cd dotty
29+
$ sbt managedSources ## Needed for IDE import to succeed
2930
```
3031

3132
Dotty provides a standard sbt build: compiling, running and starting a repl can

project/Build.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ object Build {
151151
crossPaths := false,
152152
// Do not depend on the Scala library
153153
autoScalaLibrary := false,
154-
// Let the sbt eclipse plugin now that this is a Java-only project
154+
// Let the sbt eclipse plugin know that this is a Java-only project
155155
EclipseKeys.projectFlavor := EclipseProjectFlavor.Java,
156156
//Remove javac invalid options in Compile doc
157157
javacOptions in (Compile, doc) --= Seq("-Xlint:unchecked", "-Xlint:deprecation")

0 commit comments

Comments
 (0)