IntelliJ IDEA Open API and Plugin Development Is Deprecated. Join our JetBrains Platform Community.
IntelliJ Plugin: "sdk does not exist"
2 人关注
已回答
I'm trying to create a plugin by following this link.
I've written a bnf and lexer file and generated the code. When I build a project, I get following error
error: package org.plugin.ghsatpute.sdk does not exist
import org.plugin.ghsatpute.sdk.SimpleLexer;
I double-checked that the package exists and there is a file `SimpleLexer`
What am I missing?
请先登录再写评论。
Ghsatpute,
Isn't your Lexer file inside of the language directory? Try with:
Yes, you're right. That was silly mistake from my side.
In addition to fixing the package naming, I did this. I added generating lexer and parser code in the build.gradle as below
Added this so that it can help others who face the same issue.