You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library uses a really old version of the jetbrains SDK, so it is not as simply as patch or update the plugins.
It is a hacky solution:
Edited the file:
src/cc/takacs/php_codeverage_display/ApplicationPlugin.java
And it is the changes:
publicclassApplicationPluginimplementsApplicationComponent {
@OverridepublicvoidinitComponent() {
ApplicationManager.getApplication().executeOnPooledThread(() -> {
try {
TimeUnit.SECONDS.sleep(30);
} catch (InterruptedExceptione) {
}
AnActiontoolbarButton = ActionManager.getInstance().getAction("cc.takacs.php_codeverage_display.toolbar.enable");
finalbooleanenabled = PropertiesComponent.getInstance().getBoolean("cc.takacs.php_codeverage_display.enabled", true);
newToggleIconService().toggleIcon(toolbarButton.getTemplatePresentation(), enabled);
});
}
// and the rest of the code.
What it does?. It waits 30 seconds (async) and loads the library and apparently it works, however we must wait 30 seconds to call this plugins but who opens the ide and start a test with coverage in 30 seconds?
It doesn't delay the load of the IDE because it is asyncronous.
This library uses a really old version of the jetbrains SDK, so it is not as simply as patch or update the plugins.
It is a hacky solution:
Edited the file:
src/cc/takacs/php_codeverage_display/ApplicationPlugin.java
And it is the changes:
What it does?. It waits 30 seconds (async) and loads the library and apparently it works, however we must wait 30 seconds to call this plugins but who opens the ide and start a test with coverage in 30 seconds?
It doesn't delay the load of the IDE because it is asyncronous.
https://gist.github.com/jorgecc/c9bec0c17bac4df51b2ac58bc3ff01b3
https://github.com/jorgecc/phpunit_codecoverage_display/blob/master/phpunit_codecoverage_display.jar
How to install it?
In PHPStorm -> plugins -> (the wheel menu) -> Install Plugins from disk -> select the file and restart PHPStorm. It should replace the old plugins.
And what if it fails? Shrug.
The text was updated successfully, but these errors were encountered: