Legal to use write action in application component init?

Hi all,

I've had some reports from my users that after installing my plugin IntelliJ locks on startup. I've investigated, and it appears to be if it's installed at the same time as the Stapler plugin. I've debugged the problem and IntelliJ seems to be deadlocking on startup when initialising components, and it seems to be because a Stapler application component is using a write action during its initComponent(). Is this legal? I'm assuming not since it seems to provoke a deadlock, but I have no idea why my plugin should trigger it - it doesn't appear anywhere in any of the stack traces, only Stapler, so I'm assuming this is the problem.

Thanks,
Colin

Please sign in to leave a comment.