Automate Eclipse settings and update project files:#5091
Conversation
|
Unfortunately, the I recently added support for updating the IntelliJ module classpaths from our sbt build (#5054), I think this could be very easily extended to update the eclipse |
|
I didn't test the new script. Scaladoc is also broken for some reason. I get errors like |
| 0. Run `ant build` to download some necessary jars and see a successful build. | ||
|
|
||
| 0. You need to define a `path variable` and a `classpath variable` inside Eclipse, both pointing to the Scala checkout directory: | ||
| - (experimental): run `./update-workspace.sh scala_checkout_dir [workspace_dir]`. This should update your workspace settings |
There was a problem hiding this comment.
Hmm, this doesn't seem to work for me:
$ ./update-workspace.sh /home/mlangc/Development/git/scala /home/mlangc/Development/eclipse-workspace/mars
Using metadata directory /home/mlangc/Development/eclipse-workspace/mars and Scala checkout /home/mlangc/Development/git/scala
Couldn't find /home/mlangc/Development/eclipse-workspace/mars/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.core.resources.prefs. Is /home/mlangc/Development/eclipse-workspace/mars an Eclipse workspace?
I was more successful with
$ ./update-workspace.sh /home/mlangc/Development/git/scala /home/mlangc/Development/eclipse-workspace/mars/.metadata
though (notice .metadata at the end of the last argument). Note that the same applies to eclipse-luna.
There was a problem hiding this comment.
OK, I'll double-check that thing.
|
Except for the minor issue with the script above, everything seems to compile fine in the IDE. I also was able to start the |
- remove `M2_REPO`. All dependencies are picked up from `build/deps` - add script to update an existing workspace directory with the required path variables - add the default Scala library to several projects for better out-of-the-box experience. This means that changes in the scale-library project may not be visible in the other projects, but makes it way easier to get a working config. If you really need that, you probably know what you’re doing anyway.
2d83300 to
f618242
Compare
M2_REPO. All dependencies are picked up frombuild/depsthat changes in the scale-library project may not be visible in the other projects, but makes it
way easier to get a working config. If you really need that, you probably know what you’re doing
anyway.