Even with Parser folder and Lex code generated in "gen" folder, I cannot run the plugin

Answered

I'm following the tutorial to build up a custom language and reached the end of part "4. Lexer and Parser Definition". All the code was generated as well and I marked "gen" folder as Generated Sources Root. IDEA do not complain and everything seems work fine but when I try to execute "runIde" script on Gradle but it raises some erros related to "gen" folder, the script cannot find the path by itself. I've also tried to build the plugin on (buildPlugin) and got same errors. What is going on and how can I fix that?

Thanks.

0
3 comments

Either use "old" way of creating DevKit plugin (http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/using_dev_kit.html) or add "gen" folder to sourceset in build.gradle.

0
Avatar
Permanently deleted user

How do you add the "gen" folder to the sourceset?

0

Please sign in to leave a comment.