Child pages
  • Setting up Scala plugin project in IntelliJ IDEA

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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:
  2. Pull requests is better to do for master branch, which is for IDEA 14.
  3. Call "sbt downloadIdea" from command line. It's approx. for 10 minutes.
    1. Sometimes you will need to call it again, when dependency to IDEA will be updated.
  4. Import sources as SBT project.
    1. In IntelliJ IDEA 14 choose File -> Import Project...
    2. Choose directory with your scala-plugin repository.
    3. Choose "Import project from external model" -> "SBT". Press Next.
    4. Choose Project SDK. Target SDK is 1.6, however sources are compatible with 1.7. Press Finish.
    5. Wait for the SBT process.
  5. Now you can make project. After that you can run IDEA run configuration.
  6. TypeInferenceTests run configuration is example. You should configure defaults for JUnit according to this example.
  7. You can use ScalaPlugin artifact to build plugin distribution.
  8. You also can compile, test and package plugin from sbt command line.