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
- Pull requests is better to do for master branch, which is for IDEA
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 1.7 contains required for development JDI library, for Windows or Linux you have to add tools.jar from jdk/lib, for Mac you don't need to add anything
5. Now you need to setup path variables for Scala plugin project. For IDEA 13 it's CARDEA_HOME variable, and LEDA_HOME for IDEA 12 branch: Image Removed
6. Now you can just run/debug IDEA run configuration.
7. To run tests change JUnit defaults according to TypeInferenceTest run configuration (VM options, Working directory, module, before launch settings).
- Call "sbt downloadIdea" from command line. It's approx. for 10 minutes.
- Sometimes you will need to call it again, when dependency to IDEA will be updated.
- Import sources as SBT project.
- In IntelliJ IDEA 14 choose File -> Import Project...
- Choose directory with your scala-plugin repository.
- Choose "Import project from external model" -> "SBT". Press Next.
- Choose Project SDK. Target SDK is 1.6, however sources are compatible with 1.7. Press Finish.
- Wait for the SBT process.
- Now you can make project. After that you can run IDEA run configuration.
- TypeInferenceTests run configuration is example. You should configure defaults for JUnit according to this example.
- You can use ScalaPlugin artifact to build plugin distribution.
- You also can compile, test and package plugin from sbt command line.