Closed zhutmost closed 4 months ago
Although we can workaround the problem, the Intellij IDEA will report unnecessary warning messages.
I think this can be fixed.
We also observe this issue in Scala Plugin.
But it's not an issue with sbt-idea-plugin, it's an issue with IntelliJ DevKit plugin. Could you please report it at https://youtrack.jetbrains.com/newIssue?project=IJPL&draftId=25-5362851 and set the subsystem DevKit?
I am writing a custom
FileType
for a custom language. According to the sample Java code in the tutorial by JetBrains, I use a companion object to store the INSTANCE object:and I add it to the plugin.xml:
However, scala will rename the companion object (add a dollar "$" after its name) during compiling. So, the above code cannot work. To solution is to correct the plugin.xml, like this:
Now we can successfully generate a correct plugin zip.