Register my custom runner and executor for creating a new run configuration
Answered
Hi,
I've created a custom runner and executor, which I've registered using <programRunner> and <executor> in plugin.xml.
I've noticed two issues when I open the run configuration contextual menu by clicking the green triangle next to a function:
- If the project currently doesn't have any existing run configurations, then the contextual menu only shows the default run & debug runner buttons as enabled. The button for my runner is greyed out and disabled:
- If the project does have at least one existing run configuration, and if the function for which I'm clicking the green icon doesn't have a configuration attached to it yet, then the contextual menu shows the default run & debug runner buttons with the function's name (which would correspond to a branch new configuration). However, while my custom runner does appear as enabled, it still points to the configuration that is already selected in the main toolbar –– It does not point to the brand new configuration:
Is there a way to register my custom runner as a runner that can handle brand new configurations?
Thanks,
Julien
Please sign in to leave a comment.
IIRC the first problem might be specific to the IDE version, what are you testing with?
The second one looks like possible implementation problem, but it's hard to tell what's going on without seeing the actual sources.