Error: group with id \"Vcs.MessageActionGroup\" isn't registered; action will be added to the \"Other\" group"

Answered

Hello,

In our plugin we register AnAction in plugin.xml like this

 

<actions>
        <action id="my.test.GenerateAction" class="my.test.GenerateAction"
                text="Generate"
                icon="MyIcons.TOOL_WINDOW">
            <add-to-group group-id="Vcs.MessageActionGroup" anchor="first"/>
        </action>        
    </actions>

But if VCS disabled (or some other issue?) it throw error like

my.test.GenerateAction (my.test.GenerateAction): group with id \"Vcs.MessageActionGroup\" isn't registered; action will be added to the \"Other\" group"

 

What's the best way to solve this issue?

Best regards,
Alex

0
2 comments

Hi Alexandr,

I suggest registering it in optional plugin.xml that is loaded when VCS plugin is present:

https://plugins.jetbrains.com/docs/intellij/plugin-dependencies.html#optional-plugin-dependencies

0

Please sign in to leave a comment.