Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1.39 KB

readme.md

File metadata and controls

27 lines (22 loc) · 1.39 KB

How to build project

  1. Clone this project;
  2. Go to root of project and start sbt;
  3. Run task downloadIdea from the sbt console;
  4. Run task intellij/compile from the sbt console;
  5. Import this project as an sbt project in IntelliJ;
  6. Select Build/Build Project;

How to prepare plugin for deployment

  1. Right click on top of intellij-scalafmt.iml inside intellij-scalafmt folder;
  2. Select Import module;
  3. Be sure the unmanaged-jars dependency in the intellij module is set to provided inside Project structure/Project settings/Modules/Dependencies (btw, setting provided inside sbt file gives error); Without this setting you'll get a classpath collision at runtime (and the generated zip file will be >100mb instead of ~20mb).
  4. Right click on top of intellij-scalafmt plugin module and select Prepare Plugin Module 'intellij-scalafmt' for deployment;

If everything went smoothly, you should have a intellij-scalafmt/intellij-scalafmt.zip file of size ~20mb. You can install this plugin in your IntelliJ installation using Settings > Plugins > Install plugin from disk... and select the generated zip file.

How to run/debug plugin inside IntelliJ

(untested). Follow these instructions: https://github.com/rikvdkleij/intellij-haskell#how-to-rundebug-plugin-inside-intellij