Skip to content

jakubbrindza/intellij-lift

Repository files navigation

IntelliJ Lift plugin

Installing the plugin

You can install this plugin using the Jetbrains plugin repository or directly from IntelliJ. At the time of publishing of this plugin, the plugin is still pending confirmation from JetBrains, thus the direct link cannot be provided just yet.

Features

  • Syntax highlighting;
  • Error/warning highlighting;
  • Code completion based on import statement;
  • Colour settings page;
  • Bracket matching and highlighting;

How to build project

  1. Clone this project;
  2. Go to root of project and start sbt;
  3. Run task updateIdea from the sbt console;
  4. Run task compile from the sbt console;
  5. Install/enable the following plugins in IntelliJ: Plugin Devkit, Grammar-Kit and PsiViewer;
  6. Import this project as an sbt project in IntelliJ;
  7. Be sure JVM SDK inside Languages & Frameworks>Scala Compiler Server is set to 1.8, since the Scala compiler version (2.12.3) which this plugin is currently using is not compatible with Java 7 or lower, Java 9 is not yet supported;
  8. Select Build>Build Project;

How to prepare plugin for deployment

  1. Right click on top of intellij-lift.iml inside intellij-lift folder;
  2. Select Import module;
  3. Be sure unmanaged-jars dependency is set to provided inside Project structure>Project settings>Modules>Dependencies (btw, setting provided inside sbt file gives error);
  4. Right click on top of intellij-lift plugin module and select Prepare Plugin Module 'intellij-lift' for deployment;

How to run/debug plugin inside IntelliJ

  1. Set Plugin SDK settings right inside Project structure>Platform settings>SDKs. For example to, set SDK home path to idea/142.5239.7 inside project root folder;
  2. Set Module-SDK right for intellij-lift plugin module inside Project structure>Project structure>Project settings>Modules;
  3. To run plugin inside IntelliJ, first run configuration has to be created. Navigate to Run>Edit configurations and create plugin configuration for intellij-lift;

Development remarks

  1. After making changes to Lift.flex, run Run JFlex Generator. This will generate LiftLexer.java;
  2. After making changes to Lift.bnf, run Generate Parser Code. This will generate parser Java files in gen directory;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published