Child pages
  • Setting up Scala plugin project in IntelliJ IDEA
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Here you can find complete guide how to start writing patches (or to creating your own Scala plugin builds) to IntelliJ IDEA Scala plugin.

1. Checkout project. 

1a. You can checkout from GitHub repository: https://github.com/JetBrains/intellij-scala

This is the mirror from the main repository, so it can be not up-to-date, but it's simpler to create pull-requests here (please add additionally an issue to our issue tracker: http://youtrack.jetbrains.com/issues/SCL)

1b. You can checkout it from our main repository, you can find Git repository link here: http://git.jetbrains.org/?p=idea/scala-plugin.git;a=summary

2. There are two main branches for two Major IDEA releases. Currently master is for IDEA 12, and Nika branch is for IDEA 11 (however you can create patch or pull request only for one of these branches, we will cherry-pick it for both)

3. You can use any IDEA version with any installed Scala plugin, just open Scala plugin project in IDEA

4. Now you need to check, that your JDK contains required for development JDI library, for Windows you have to add tools.jar from jdk/lib, for Mac you don't need to add anything

5. Now you need to add IDEA installation directory in right place

5a. For master branch you need to create directory SDK\LedaSDK and unpack IDEA 12 files here

5b. For Nika branch you need to create directory SDK\NikaSDK and unpack IDEA 11 files here

6. The last step is to choose 'main-scala-compiler' library in fsc settings

7. Now you can just run/debug IDEA run configuration to get IDEA with just compiled from sources Scala plugin (you probably won't get compilation from the first time, because of Scala 2.10 fsc bug, in this case you have to Stop fsc, then try again)

  • No labels