Errors When Running Plugin Follow
Answered
I just upgraded from IntelliJ UE 2018.2.2 to 2018.3.4 and my plugin has stopped working. It is throwing two errors regarding the classes shown below. I do not know why these errors are getting thrown as they aren't visibly true. The errors say that my custom action isn't of type AnAction but it is. The errors also say that my custom group is not of type ActionGroup but it is. Any help would be appreciated.
com.intellij.diagnostic.PluginException: class with name 'main.java.actions.ViewScriptsAction' must be an instance of 'com.intellij.openapi.actionSystem.AnAction'; got main.java.actions.ViewScriptsAction@2d0d4126 [Plugin: com.jpmc.script.tracker]
com.intellij.diagnostic.PluginException: class with name "main.java.groups.FileGroup" should be instance of com.intellij.openapi.actionSystem.ActionGroup [Plugin: com.jpmc.script.tracker]
<actions>
<group class="main.java.groups.FileGroup" popup="true" text="Script Tracker">
<add-to-group group-id="EditorPopupMenu" anchor="first"/>
</group>
<group id="main.java.groups.ToolsGroup" popup="true" text="Script Tracker">
<add-to-group group-id="ToolsMenu" anchor="first"/>
<action id="main.java.actions.ViewScriptsAction"
class="main.java.actions.ViewScriptsAction" text="View Scripts"/>
</group>
</actions>
Please sign in to leave a comment.
Do you get these errors with installed version of your plugin or when running your plugin from sources?
When I'm running from sources.
Please try full rebuild and/or re-creating the IntelliJ Platform SDK (in Devkit plugin) or delete and re-downloaded artifacts (in Gradle plugin).
Everything is working now. What I ended up doing was going into my .gradle/caches deleting everything that was there and running the plugin again. Thank you for your help.