Plugin development, use localization pre-installed plugin.
Hi,
I'm working on a plugin for me and others at work to simplify some tasks we do every day.
The PHP side of my plugin is done, but I want to add completion in gettext files (.po and .pot). If I add the localization plugin to my project and set the scope to either compile or provided PhpStorm throws an error.
- Compile scope: Language with ID Locale is already defined.
- Provided scope: NoClassDefFoundException.
Is there an other way to to do this?
Code so far:
Please sign in to leave a comment.
Hey. Could you please clarify what do you mean by "the localization plugin"?
I want to add completion for the Locale language which is defined in this plugin that's pre-installed in PhpStorm:
I added it as a library:
The proper scope is "Provided". Could you please post the whole stack trace?
Also, please don't forget to add the localization plugin as a dependency as it can be disabled despite bundled.
If you don't want to depend on the plugin you can make completion optional, see http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
Stack trace:
I think I found the problem. My plugin targets multiple IDE's and my plugin xml files look like this:
plugin.xml
php-plugin.xml
And it works when i move the depends from php-plugin.xml to plugin.xml