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.
- Syntax highlighting;
- Error/warning highlighting;
- Code completion based on import statement;
- Colour settings page;
- Bracket matching and highlighting;
- Clone this project;
- Go to root of project and start sbt;
- Run task
updateIdea
from the sbt console; - Run task
compile
from the sbt console; - Install/enable the following plugins in IntelliJ: Plugin Devkit, Grammar-Kit and PsiViewer;
- Import this project as an sbt project in IntelliJ;
- Be sure
JVM SDK
insideLanguages & Frameworks
>Scala Compiler Server
is set to1.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; - Select
Build
>Build Project
;
- Right click on top of
intellij-lift.iml
insideintellij-lift
folder; - Select
Import module
; - Be sure
unmanaged-jars
dependency is set toprovided
insideProject structure
>Project settings
>Modules
>Dependencies
(btw, settingprovided
inside sbt file gives error); - Right click on top of
intellij-lift
plugin module and selectPrepare Plugin Module 'intellij-lift' for deployment
;
- Set Plugin SDK settings right inside
Project structure
>Platform settings
>SDKs
. For example to, set SDK home path toidea/142.5239.7
inside project root folder; - Set
Module-SDK
right forintellij-lift
plugin module insideProject structure
>Project structure
>Project settings
>Modules
; - To run plugin inside IntelliJ, first run configuration has to be created. Navigate to
Run
>Edit configurations
and createplugin
configuration forintellij-lift
;
- After making changes to
Lift.flex
, runRun JFlex Generator
. This will generateLiftLexer.java
; - After making changes to
Lift.bnf
, runGenerate Parser Code
. This will generate parser Java files ingen
directory;