mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] prefers an older but compatible plugin (IDEA-188964)
This commit is contained in:
@@ -898,7 +898,12 @@ public class PluginManagerCore {
|
||||
if (oldIndex >= 0) {
|
||||
IdeaPluginDescriptorImpl oldDescriptor = result.get(oldIndex);
|
||||
if (StringUtil.compareVersionNumbers(oldDescriptor.getVersion(), descriptor.getVersion()) < 0) {
|
||||
result.set(oldIndex, descriptor);
|
||||
if (isIncompatible(descriptor) && isCompatible(oldDescriptor)) {
|
||||
getLogger().info("newer plugin is incompatible, ignoring: " + descriptor.getPath());
|
||||
}
|
||||
else {
|
||||
result.set(oldIndex, descriptor);
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user