Skip to content

gregorej/vala-intellij-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Vala Language plugin for Intellij

Note:This project is no longer maintained my me (gregorej).

Join the chat at https://gitter.im/gregorej/vala-intellij-plugin

About language itself: https://wiki.gnome.org/Projects/Vala

How to build

Note this instructions may seem complex but they really are quite simple. Also, most of them need to be done once.

  1. Install Grammar-Kit plugin for Intellij
  2. Import Vala plugin sources as new Intellij project (in other words, create new project from sources). When you do this, choose Intellij plugin project type.
  3. Mark src/main/java as sources directory, src/main/resources as resources directory
  4. Mark src/test/java and src/test/resources as test sources directory
  5. Open org.intellij.vala.parser.Vala.bnf file in Intellij and press Ctrl+Shift+G to generate parser code
  6. Open org.intellij.vala.lexer._ValaLexer.flex and run JFlex generator from it (Ctrl + Shift + G)
  7. Now you should have a gen directory in the project root dir. Mark it as Generated Sources Root.

Now the whole code should compile. If it does not, invoke point 5. again. There is possible that there are some cyclic dependencies between generated sources and normal ones.