我有一个应用程序服务在plugin.xml中声明为
<extensions defaultExtensionNs="com.intellij">
<applicationService serviceImplementation="MyService"/>
</extensions>但是下面的测试失败
public class MyServiceTest extends LightCodeInsightFixtureTestCase {
public void test() throws Exception {
MyService service = ServiceManager.getService(MyService.class);
assertNotNull(service);
}
}我尝试在DefaultPicoContainer#registerComponent(ComponentAdapter)中放置带有条件的断点,但它从未触发。日志中没有错误。
发布于 2016-06-27 14:44:47
这个插件被忽略了,因为~\.IdeaIC12\system\plugins-sandbox\plugins中有另一个插件,plugin.xml中有相同的<name>。
检查IdeaPluginDescriptorImpl[] at PluginManager#initializePlugins,以检查您的插件是否正在加载。
https://stackoverflow.com/questions/38026029
复制相似问题