mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
plugin loading: don't fail if one of plugins required for a plugin which defines a module cannot be loaded (IDEA-152606)
This commit is contained in:
@@ -596,7 +596,11 @@ public class PluginManagerCore {
|
||||
// check for missing optional dependency
|
||||
IdeaPluginDescriptor dep = idToDescriptorMap.get(dependentPluginId);
|
||||
if (dep != null) {
|
||||
plugins.add(dep.getPluginId());
|
||||
//if 'dep' refers to a module we need to add the real plugin containing this module only if it's still enabled, otherwise the graph will be inconsistent
|
||||
PluginId realPluginId = dep.getPluginId();
|
||||
if (idToDescriptorMap.containsKey(realPluginId)) {
|
||||
plugins.add(realPluginId);
|
||||
}
|
||||
}
|
||||
}
|
||||
return plugins.iterator();
|
||||
|
||||
Reference in New Issue
Block a user